LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2007, 10:55 AM   #1
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Rep: Reputation: 15
Weird, DNS propagation too long or my zone file is not right


hi, everyone,
I would like to setup a name server on the redhat ENT WS3 within my home network though a cable modem internet connection. The named.conf and zone file look fine, and rndc.conf is also ok. The named service is up and listening to port 53. If I use localhost as name server, I can dig every domain successfully, my desired NS, MX, A record can be also resolved. The ports (80, 110, 22, 21, 53 and 953 etc.) forwarding for this linux host in my router have been enabled. The domain register has been updated with my own name server, and that name server can be resolved by my ISP name server or others.

I waited for 72 hours for the DNS propagation, but it still cannot be found by my ISP name server and other web-based DNS checker.

Could you please help me out? Thank you very much!
 
Old 10-04-2007, 05:09 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Do:

Code:
dig yoursite.com +trace
That will go all the way down to the root servers and go back up the tree to the authoritative DNS servers. I will bet that the problem is you have to register the IP address of your DNS server with your registrar. Since you're on a cable modem, you have a dynamic address which can change. Maybe when you registered you had one address, but that is no longer the case.

Running DNS from a dynamic connection is a very bad idea. You can have a dyndns service, but your nameserver needs to be tied to a static IP. What you are doing will fail at various times.

Peace,
JimBass
 
Old 10-05-2007, 03:16 PM   #3
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
Unhappy The IP is almost static IP if I do not change the modem

I am trying to find out whatever I can do for it. But still not working.

1. double checked the zone file and eveything is ok, changed the serial number to systemdate.

2. "rndc status" shows everything is runging.

3. dig my own name sever registered by my register, i can find it within my home network. But look like cannot find it in my work network, using other online tool, it shows some NS has already known this NS. Don't know.

4. My IP is static IP.

What else should I do?
 
Old 10-05-2007, 04:35 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You should do the command I gave you,
Code:
dig yoursite.com +trace
obviously replacing yoursite.com with the real domain name. The problem is not likely to be something wrong with your server, the problem is that your server is most likely never being asked. That is what the +trace does, it follows the DNS chain from the root up to the authoritative server.

Peace,
JimBass
 
Old 10-05-2007, 06:59 PM   #5
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks. I think, you are right. The server might be never asked.
If i use localhost to resolve name, everything can be resolved.
I just dig mysite.com + trace using my ISP Ns. It's said "no server can be reached" And then what's next? Thanks!

Really helped me to understand more about DNS and BIND.
 
Old 10-05-2007, 07:30 PM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
When you do dig +trace it tries to get down to the roots then climb up to the authoritative server. Since it is unreachable, that means what I suggested in my original post is correct.

You need to go to your registrar (godaddy, netsol, whoever it is) and check on your nameservers. Just because it says ns1.yoursite.com is the nameserver doesn't mean it actually is asking for your version of ns1.yoursite.com. You need to reset the IP of your primary nameserver on the registrars page. It is usually buried in the nameserver functions.

Another possibility is that your router isn't forwarding requests to your linux box. I know you said it is configured to do that, but you should check that from a remote machine.

Also, you haven't helped yourself by hiding the domain name. If you had posted your domain in the first post, I could have confirmed all this in one post as opposed to 3. Whenever you need help with DNS, it is much better to use the real domain name.

Peace,
JimBass
 
Old 10-05-2007, 08:47 PM   #7
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks, Jim.
The IP for NS is correctly configured at register. But another domain also has a record pointing to the same IP at the register. I am wondering if this causes problems, I am trying to reset that domain configuration. Again, the IP is static and the server is up.

The port forwarding is working, because I can ping NS at any place.

I am still a beginner of Linux, for security reason, I left the domain hidden.

Hard to understand why NS can be reached but it cannot resolve any record in the zone file?
 
Old 10-05-2007, 09:47 PM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
You could have any number of domains pointed at the same IP, that makes no difference.

Pinging tells you nothing about port forwarding. You'd need to telnet to port 53 to see if it is forwarding correctly, or a much better way to try is to issue a command like:
Code:
dig yourdomain.com @4.3.2.1
where 4.3.2.1 is your public IP address.

Security by obscurity is no type of security at all. Beyond that, DNS is not an attack vector. Regardless of how poorly a DNS server is set up, people can't write data into it. People also can't steal the ability to resolve your domain, because that is controlled by your registrar. You want your domain to be resolved by the entire world. If you don't want people poking around your website then set the firewall/router to only allow traffic from specific IPs thats fine, but DNS needs to be open to everybody.

To make a long story short, you're welcome for the help so far, but without a domain name to lookup, there is nothing more I can do for you.

Peace,
JimBass
 
Old 10-06-2007, 10:21 AM   #9
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
I tried to use dig xxx@ip
says: 1 server found, but no server can be reached.

There are several tools online which can check if the port is ok. http://www.canyouseeme.org/ says, the port 53 @ my ip is open.
 
Old 10-06-2007, 10:53 AM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Ok, from the ground up -

Code:
jim@jimsworktop:~$ dig +trace murou.com

; <<>> DiG 9.4.1-P1 <<>> +trace murou.com
;; global options:  printcmd
.                       166295  IN      NS      h.root-servers.net.
.                       166295  IN      NS      i.root-servers.net.
.                       166295  IN      NS      j.root-servers.net.
.                       166295  IN      NS      k.root-servers.net.
.                       166295  IN      NS      l.root-servers.net.
.                       166295  IN      NS      m.root-servers.net.
.                       166295  IN      NS      a.root-servers.net.
.                       166295  IN      NS      b.root-servers.net.
.                       166295  IN      NS      c.root-servers.net.
.                       166295  IN      NS      d.root-servers.net.
.                       166295  IN      NS      e.root-servers.net.
.                       166295  IN      NS      f.root-servers.net.
.                       166295  IN      NS      g.root-servers.net.
;; Received 436 bytes from 207.69.188.187#53(207.69.188.187) in 39 ms

com.                    172800  IN      NS      L.GTLD-SERVERS.NET.
com.                    172800  IN      NS      G.GTLD-SERVERS.NET.
com.                    172800  IN      NS      J.GTLD-SERVERS.NET.
com.                    172800  IN      NS      K.GTLD-SERVERS.NET.
com.                    172800  IN      NS      E.GTLD-SERVERS.NET.
com.                    172800  IN      NS      I.GTLD-SERVERS.NET.
com.                    172800  IN      NS      F.GTLD-SERVERS.NET.
com.                    172800  IN      NS      C.GTLD-SERVERS.NET.
com.                    172800  IN      NS      M.GTLD-SERVERS.NET.
com.                    172800  IN      NS      B.GTLD-SERVERS.NET.
com.                    172800  IN      NS      D.GTLD-SERVERS.NET.
com.                    172800  IN      NS      H.GTLD-SERVERS.NET.
com.                    172800  IN      NS      A.GTLD-SERVERS.NET.
;; Received 499 bytes from 192.33.4.12#53(c.root-servers.net) in 53 ms

murou.com.              172800  IN      NS      ns1.murou.com.
murou.com.              172800  IN      NS      slv1.1and1.com.
;; Received 102 bytes from 192.33.14.30#53(B.GTLD-SERVERS.NET) in 270 ms

;; Received 27 bytes from 217.160.224.4#53(slv1.1and1.com) in 61 ms
So we don't get an answer at all. Your primary nameserver (ns1.murou.com) doesn't reply at all, and the secondary DNS (slv1.1and1.com) tries to answer put doesn't know what the IP address is.

Further investigation - is your static IP correctly identified by the registrar?

Code:
jim@jimsworktop:~$ dig ns1.murou.com +trace

; <<>> DiG 9.4.1-P1 <<>> ns1.murou.com +trace
;; global options:  printcmd
.                       98716   IN      NS      J.ROOT-SERVERS.NET.
.                       98716   IN      NS      K.ROOT-SERVERS.NET.
.                       98716   IN      NS      L.ROOT-SERVERS.NET.
.                       98716   IN      NS      M.ROOT-SERVERS.NET.
.                       98716   IN      NS      A.ROOT-SERVERS.NET.
.                       98716   IN      NS      B.ROOT-SERVERS.NET.
.                       98716   IN      NS      C.ROOT-SERVERS.NET.
.                       98716   IN      NS      D.ROOT-SERVERS.NET.
.                       98716   IN      NS      E.ROOT-SERVERS.NET.
.                       98716   IN      NS      F.ROOT-SERVERS.NET.
.                       98716   IN      NS      G.ROOT-SERVERS.NET.
.                       98716   IN      NS      H.ROOT-SERVERS.NET.
.                       98716   IN      NS      I.ROOT-SERVERS.NET.
;; Received 436 bytes from 207.69.188.187#53(207.69.188.187) in 58 ms

com.                    172800  IN      NS      a.gtld-servers.net.
com.                    172800  IN      NS      b.gtld-servers.net.
com.                    172800  IN      NS      c.gtld-servers.net.
com.                    172800  IN      NS      d.gtld-servers.net.
com.                    172800  IN      NS      e.gtld-servers.net.
com.                    172800  IN      NS      f.gtld-servers.net.
com.                    172800  IN      NS      g.gtld-servers.net.
com.                    172800  IN      NS      h.gtld-servers.net.
com.                    172800  IN      NS      i.gtld-servers.net.
com.                    172800  IN      NS      j.gtld-servers.net.
com.                    172800  IN      NS      k.gtld-servers.net.
com.                    172800  IN      NS      l.gtld-servers.net.
com.                    172800  IN      NS      m.gtld-servers.net.
;; Received 491 bytes from 193.0.14.129#53(K.ROOT-SERVERS.NET) in 129 ms

ns1.murou.com.          172800  IN      A       12.205.160.148
murou.com.              172800  IN      NS      ns1.murou.com.
murou.com.              172800  IN      NS      slv1.1and1.com.
;; Received 118 bytes from 192.55.83.30#53(m.gtld-servers.net) in 304 ms
So your registrar believes that your nameserver is running at public IP 12.205.160.148. If that is the case, then I should be able to get name resolution by asking that IP specifically -

Code:
jim@jimsworktop:~$ dig murou.com @12.205.160.148

; <<>> DiG 9.4.1-P1 <<>> murou.com @12.205.160.148
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
Game over. You either have the wrong static address set at your registrar, or you have some problem with named/BIND itself. Since you tell us that you can resolve it locally, that means you don't have a BIND problem, unless you're using separate views for the zone internally and externally.

Your slave server at least has named running, but it can't answer the query either -

Code:
jim@jimsworktop:~$ dig murou.com @slv1.1and1.com

; <<>> DiG 9.4.1-P1 <<>> murou.com @slv1.1and1.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19187
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

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

;; Query time: 59 msec
;; SERVER: 217.160.224.4#53(217.160.224.4)
;; WHEN: Sat Oct  6 11:44:41 2007
;; MSG SIZE  rcvd: 27
This line in particular
Code:
WARNING: recursion requested but not available
means they don't think they are authoritative for your domain. You need to have all servers answer authoritatively for the zone. That means that slv1.1and1.com doesn't think it is a nameserver for you.

So it comes back to either not forwarding correctly from the router to the linux machine, or you have the wrong address registered with the registrar. I suppose your ISP could be blocking you as well, but that port test tool should have revealed that to you.

Your home machine, supposedly at 12.205.160.148 doesn't answer at all, and your secondary is at least running on the IP it is supposed to be at, but it doesn't think it is a nameserver for your domain.

Peace,
JimBass
 
Old 10-07-2007, 08:45 AM   #11
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
Every setting by register is fine. If the name server and other server on the same IP, they call it glue DNS. They suggested to build a subdomain like ns1.mydomain.com first with a record of public IP. And then the primary NS is pointing to the subdomain. If you dig the ns1.murou.com, you will find everything is fine. I guess, the register does not allow me to DIY because they offered a bundle DNS/mail/web/etc. service.
 
Old 10-07-2007, 09:05 AM   #12
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
I am waiting for the result, called the register, they said, probably I cannot use their NS as slave NS, if I choose my own NS, I can only use my own NS. Maybe it's true. Let's try.
 
Old 10-07-2007, 11:37 AM   #13
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That is not what glue means in a DNS sense.

http://en.wikipedia.org/wiki/Domain_...d_glue_records

Quote:
If you dig the ns1.murou.com, you will find everything is fine
I already went over that in my last post. According to the DNS system, ns1.murou.com exists at

Code:
jim@jimsworktop:~$ dig ns1.murou.com

; <<>> DiG 9.4.1-P1 <<>> ns1.murou.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37058
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;ns1.murou.com.                 IN      A

;; ANSWER SECTION:
ns1.murou.com.          172800  IN      A       12.205.160.148
If 12.205.160.148 is indeed your public IP, then named is not working for the public -

Code:
jim@jimsworktop:~$ dig murou.com @12.205.160.148

; <<>> DiG 9.4.1-P1 <<>> murou.com @12.205.160.148
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached
So we're back again to you either have the wrong IP set at your registrar, named is not running, or your router is not forwarding to the linux server.

You say 12.205.160.148 is correct, so that is out.

You claimed earlier that named is running on your machine, although you haven't posted anything that confirms that.

Since I get no answer when I ask 12.205.160.148 directly, you have some obvious problem.

Peace,
JimBass
 
Old 10-08-2007, 11:41 AM   #14
schenke
LQ Newbie
 
Registered: Oct 2007
Location: Iowa
Distribution: Redhat EL 3
Posts: 27

Original Poster
Rep: Reputation: 15
Actually I already eliminate the three reasons you listed.

Are u saying you cannot ping the IP? Can you ping ns1.murou.com? I guess, you can. That's the IP I am using for everything. So IP is not the problem.

I checked "named" with "rndc status", double checked with "ps aux", it's running. so Named is runing. I will publish zone file here tonight.

The only thing left is the port forwarding. I think, it's also ok, because I tried port 80, it is working, also confirmed pop3 port, ssh port, although didnot try with port 53. Router should do the same thing if i setup it in the same way , regardless port number. A kind of confirmation (? I will double check and enable telnet in linux and try 53)

Really exhaust me...
 
Old 10-08-2007, 02:14 PM   #15
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you had eliminated the 3 reasons I gave, you wouldn't have a problem!

Ping is absolutely useless in this case. I haven't used any tool besides dig, which is the only DNS specific tool worth using. What I said was that when I specifically ask the IP address 12.205.160.148 for DNS info about murou.com, it doesn't answer at all. Again, that means:

1) 12.205.160.148 is not your IP address or your registrar claims it is when it isn't
2) Named is not running
3) Your router is not forwarding port 53 on IP 12.205.160.148 to port 53 on the server's LAN IP.

So far you've shown me nothing that proves that 1 could not be true, the rndc and ps aux | grep named indicate that point 2 isn't the problem, and you've also not done anything to disprove point 3.

By the way, ns1.murou.com doens't ping, although that isn't surprising for a home cable modem -
Code:
jim@jimsworktop:~$ ping ns1.murou.com
PING ns1.murou.com (12.205.160.148) 56(84) bytes of data.

--- ns1.murou.com ping statistics ---
17 packets transmitted, 0 received, 100% packet loss, time 16066ms
But again, ping tells us nothing. I'm not willing to port sniff your public IP, as that will look to your ISP like I am attempting to hack their network.

You don't need to open telnet to your linux box, you need to open 53 for named. If it is open for named, you can try and get in there with any tool pointed at port 53, be it dig, telnet, or anything else you can direct at a specific port.

Ah, here's something finally. I tried ssh, and after about 45 seconds (way the hell too long) it finally replied -

Code:
jim@jimsworktop:~$ ssh ns1.murou.com
The authenticity of host 'ns1.murou.com (12.205.160.148)' can't be established.
RSA key fingerprint is 36:49:90:b5:a9:88:ea:e1:9d:c5:88:04:71:89:d3:5b.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.
That means your public IP is probably 12.205.160.148, and you simply don't have port 53 forwarded. It would be the same setup as whatever you did to forward 22 to the linux machine for ssh.

If the port is forwarded correctly according to your router, then named itself has a problem. If you post anything, post the full named.conf file(s) and the zone file for murou.com.

If anything I say isn't clear, ask about it. Your last post seems to show you don't really understand what I am doing to solve the DNS issues you're having.

Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Zone file help mnm_mc Linux - Networking 2 05-22-2007 09:19 AM
DNS zone file help mnm_mc Linux - Networking 4 11-27-2006 03:28 PM
DNS zone file question DanielTan Linux - General 3 09-21-2005 09:52 PM
Need help with DNS zone file please:-) TippyToes Linux - Networking 5 04-28-2004 05:32 PM
DNS Propagation penguinz Linux - Networking 4 07-29-2003 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration