DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 3rd, 2004, 09:08 PM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Unhappy NetReg DNS Blackhole help

I have been working on this NetReg project and I have hit a snag when putting our NetReg server into production.

The goal is to have all clients who receive this DNS server as via DHCP have all of their DNS requests resolve to the Netreg box for registration.

While on the test server, everything worked fine with a single interface. Now in going into production I am having trouble getting DNS to respond on multiple interfaces.

For example: x.x.180.254
x.x.181.254

These are two of my 19 interfaces and I need DNS to resolve to multiple addresses. How should I modify my named.conf and my db.root to allow this? When I do an nslookup from my test client, I get - "Cant find server name for address x.x.x.x"
"Default server unavailable."

I'm sure that named is running as I can see it with ps aux | grep named and I can see it starting in the syslog.

I know I have connectivity between the Netreg server and the client. I can run nslookups on the Netreg server and they resolve correctly to the netreg server. When the client does a nslookup agains the netreg server, they get a DNS lookup timed out message. I am sniffing the wire, and i can see the UDP packets going back and forth. But I'm not seeing the query show up in the DNS query log.

Here are my conf files:

Resolv.conf:
Nameserver x.x.12.210 (real)
Nameserver x.x.180.254 (netreg)
------------------------
Named.conf:
Options {
Directory "/etc/";
Recursion no;
};

Zone "." in {
Type master;
File "db.root";
};
------------------------
Db.root:
$TTL 3600

@ IN SOA netreg.cnu.edu. root.netreg.cnu.edu. (
2
10800
3600
604800
86400
IN NS netreg.cnu.edu.
*. 86400 IN A x.x.180.254
*.edu 86400 IN A x.x.180.254
*.cnu.edu. 86400 IN A x.x.180.254

254.180.x.x.in-addr.arpa. IN PTR netreg.cnu.edu.
-------------------------

If you could help me out on this, I would be very grateful. Thanks in advance for any help you might be able to provide.

Reply With Quote
  #2  
Old August 3rd, 2004, 10:50 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
show me the response to this command on the dns server:

netstat -an | grep ':53'

Also make sure that there isn't a firewall preventing queries from making it to the dns server.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old August 8th, 2004, 08:46 PM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Quote:
Originally Posted by SilentRage
show me the response to this command on the dns server:

netstat -an | grep ':53'

Also make sure that there isn't a firewall preventing queries from making it to the dns server.



Silent Rage,

Thanks for the suggestion - when I did the first netstat i didnt get any results. So, I disabled the firewall on that server. Then when I ran the netstat command, I got that it was listening on all of the interfaces on port 53.

Now, my issue is that nslookup always resolves to the
x.x.180.254 address no matter what. So, hotmail will resolve to x.x.180.254 when I am on the x.x.181.0 network. I need the server to resolve to multiple IPs, correct? Where do I allow that to happen?

Thanks so much for the help!
-AC

Reply With Quote
  #4  
Old August 9th, 2004, 01:06 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
Show me the results for this command executed on the dns server:

dig www.hotmail.com

Also show me the results of the following command:

named -u named -g

Last edited by SilentRage : August 9th, 2004 at 01:08 AM.

Reply With Quote
  #5  
Old August 9th, 2004, 08:50 PM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Quote:
Originally Posted by SilentRage
Show me the results for this command executed on the dns server:

dig www.hotmail.com

Also show me the results of the following command:

named -u named -g

-----------------------------------------
Here are the results:

Dig hotmail.com -

;; QUESTION SECTION:
;hotmail.com. IN A

;; ANSWER SECTION:
Hotmail.com. 86400 IN A x.x.180.254

;; AUTHORITY SECTION:
. 3600 IN NS netreg.cnu.edu.

;; ADDITIONAL SECTION:
netreg.cnu.edu. 86400 IN A x.x.180.254

;; Query time: 1 msec
;; SERVER x.x.180.254#53 (x.x.180.254)
;; WHEN: Mon Aug 9 21:37:08 2004
;; MSG SIZE rcvd: 88

-----------------------------------------
named -u named –g

loading configuration from ‘/etc/named.conf’
no IPv6 interfaces found
listening on IPv4 interface lo, 127.0.0.1#53
binding TCP socket: address in use
listening on IPv4 interface eth1, x.x.180.254#53
binding TCP socket: address in use

- this continues for all 19 interfaces

listening on IPv4 interface santoro215, x.x.215.254#53
binding TCP socket: address in use

Couldn’t add command channel 127.0.0.1#953: address in use
Ignoring config file logging statement due to –g option
Zone ./IN: loaded serial 2
Running
Client x.x.215.6#1217: query: download.avast.com IN A
-- then there are several more query listings...

--- Again Silent - Thanks for all of the help!!

Last edited by superpants3 : August 9th, 2004 at 09:44 PM. Reason: Edited to add more notes

Reply With Quote
  #6  
Old August 9th, 2004, 11:05 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
* SilentRage mumbles about confusing censorship

attach a copy of your named.conf. Don't paste it, attach it.

Reply With Quote
  #7  
Old August 10th, 2004, 06:21 PM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Quote:
Originally Posted by SilentRage
attach a copy of your named.conf. Don't paste it, attach it.


Silent Rage,

I have attached my named.conf. Let me know if you need any more config files.

-Andy
Attached Files
File Type: txt named_conf.txt (498 Bytes, 150 views)

Reply With Quote
  #8  
Old August 11th, 2004, 07:55 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
I see what the problem is, but I need more information. It appears to be a conflict of purposes and we need to find a nice happy harmony in your DNS server to accomplish these conflicting purposes.

1) Why is "recursive" set to "no" if you want your server to resolve hotmail.com?
2) Tell me why you have a strange db.root file.

Last edited by SilentRage : August 11th, 2004 at 08:01 AM.

Reply With Quote
  #9  
Old August 11th, 2004, 09:42 AM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Cool

Quote:
Originally Posted by SilentRage
I see what the problem is, but I need more information. It appears to be a conflict of purposes and we need to find a nice happy harmony in your DNS server to accomplish these conflicting purposes.

1) Why is "recursive" set to "no" if you want your server to resolve hotmail.com?
2) Tell me why you have a strange db.root file.


Good Morning,

Just to make sure that we're still on the same page:
This is a dummy DNS server. All queries should resolve to x.x.180.254 if you're on the 180 VLAN, x.x.181.254 if you're on the 181 VLAN, etc. The purpose of this is to have hotmail.com or any other query resolve to my NetReg box, thus trapping the user and making them register their machine with the NetReg server, before receiving a valid DNS server entry via DHCP.

1) The named.conf file was provided in the NetReg install. The recursive option was set to "no" for me. [see attached file]

2) The db.root file was also provided with NetReg, and I have tweaked it somewhat trying to get things to work. The original file looked like this: [see attached file]

The server currently works the way I want it to, on the x.x.180.0 network. Clients are getting the correct DNS (bogus) DNS server and resolving to the NetReg box whenever they type cnn.com into their browsers. They will then register their computers, and complete the process.
The remaining issue is that clients on the x.x.181.0 network are getting the correct bogus DNS server (x.x.181.254) but that server is resolving all querries to the x.x.181.254 address.

Sorry if I am reapeating myself, but I just wanted to make things clear. Thanks.

-AC
Attached Files
File Type: txt db.root.txt (328 Bytes, 125 views)
File Type: txt named.conf.txt (190 Bytes, 117 views)

Reply With Quote
  #10  
Old August 11th, 2004, 12:36 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
"The remaining issue is that clients on the x.x.181.0 network are getting the correct bogus DNS server (x.x.181.254) but that server is resolving all querries to the x.x.181.254 address."

Did you typo? Did you mean the server is resolving all queries for the x.x.180.254 address? If so, then you need to setup "views" so that each interface is on a different name space. My server's config uses views:

http://www.dollardns.net/bind/advanced/named.conf

Reply With Quote
  #11  
Old August 11th, 2004, 02:08 PM
superpants3 superpants3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 superpants3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 54 sec
Reputation Power: 0
Talking Working NetReg DNS blackhole!!! Silent Rage, you rule!

Quote:
Originally Posted by SilentRage
"The remaining issue is that clients on the x.x.181.0 network are getting the correct bogus DNS server (x.x.181.254) but that server is resolving all querries to the x.x.181.254 address."

Did you typo? Did you mean the server is resolving all queries for the x.x.180.254 address? If so, then you need to setup "views" so that each interface is on a different name space. My server's config uses views:

http://www.dollardns.net/bind/advanced/named.conf


Thanks for the advice. I added views for 4 of my VLANS -
x.x.180.0
x.x.181.0
x.x.182.0
x.x.183.0

Then I went to try nslookup and see what happened. It looks to me like I need to add a seperate db.root for each VLAN that I have created a view for. Is that correct?

** NOTE - I have added seperate db.root files for each interface - db.root.181 for example. This seems to be working. I am testing it with all the VLANS. I will post my config if it works.

** UPDATE: As of 6pm my config works. Thanks to silent rage for all the help. I have included my config in this post. As you can see, i ended up creating individual db.root files for each interface. I dont know if this was the cleanest way to get it to work, but it served my purpose.

-AC
Attached Files
File Type: txt named_working.conf.txt (3.4 KB, 160 views)

Last edited by superpants3 : August 11th, 2004 at 05:36 PM. Reason: success!!

Reply With Quote
  #12  
Old August 12th, 2004, 12:08 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,195 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 15 h 53 m 4 sec
Reputation Power: 77
yes, the idea was to setup a separate file for each view. Congrats for figuring out how to implement views. I figured all you needed was a nudge in the right direction.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > NetReg DNS Blackhole help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump