LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-04-2005, 01:45 PM   #1
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
DNS Tweak


I have a dns server (bind) working and everything is ok except one minor problem. When I ping my A records things work but the TLD doesn't respond.

That is, ping mail.foo.com is ok but ping foo.com says unknown host.

Any idea where I went wrong?

Here is my file for foo
Code:
$TTL    604800
@       IN      SOA     foo.com. root.foo.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      foo.com.
1.0.0   IN      PTR     localhost.
        IN      MX      10 dns.mail.foo.com  ; mail server
;
#www    CNAME   dns
ftp     CNAME   dns
smtp    CNAME   dns
pop     CNAME   dns
proxy   CNAME   dns
news    CNAME   dns
;
www     A       192.168.1.5
mail    A       192.168.1.2
;
 
Old 01-04-2005, 05:30 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
there is no A record for foo.com

also,
You have NS as foo.com. I am surprised that even works since the nameserver is typically a host machine.
 
Old 01-04-2005, 07:06 PM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: DNS Tweak

Quote:
Originally posted by viniosity
I have a dns server (bind) working and everything is ok except one minor problem. When I ping my A records things work but the TLD doesn't respond.

That is, ping mail.foo.com is ok but ping foo.com says unknown host.

Any idea where I went wrong?

I'm surprised anything is working. Along with amfoster's comments, add the following

1) SOA record is referring to a domain name, not a fully qualified domain name. i.e.
Code:
@       IN      SOA     foo.com. root.foo.com.
   should be...
@       IN      SOA     dns.foo.com. root.foo.com.
2) The NS record is pointing to a domain name, not a fully qualified domain name. i.e.
Code:
@       IN      NS      foo.com.
   should be...
@       IN      NS      dns.foo.com.
3) There is no glue record (A) for the NS record. i.e.
Code:
dns       IN      A      192.168.1.4
Note: Change the IP address above to meet your requirements

4) What the hell is a PTR record doing in a forward zone definition? Localhost should always point to 127.0.0.1
Code:
1.0.0   IN      PTR     localhost.
   should be...
localhost     IN      A       127.0.0.1
5) Your MX record is pointing to a FQDN that does not exist. For simplicaity sake, group the MX record with the NS record and add the @ sign. i.e.
Code:
        IN      MX      10 dns.mail.foo.com  ; mail server
should be... Note the trailing period
@       IN      NS      dns.foo.com.
@       IN      MX      10 mail.foo.com.  ; mail server
6) All the CNAME's <groan> point to a non-existant A record. i.e. the "dns" address record does not exist. Item 3 above should fix this problem.
Code:
#www    CNAME   dns
ftp     CNAME   dns
smtp    CNAME   dns
pop     CNAME   dns
proxy   CNAME   dns
news    CNAME   dns
7) If you want to ping the domain name (foo.com), then an Address record is required. i.e.
Code:
@               IN      A       192.168.1.4
Note: Change the above IP address to the address that you want to assign to the domain name. Possibly your web server IP address?
 
  


Reply



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
Planing a minor tweak Davus Linux - Software 1 01-10-2005 12:39 AM
how to tweak kernel teet Fedora 5 05-31-2004 03:03 AM
Slack - why do I tweak but not use? GAVollink Slackware 14 01-02-2004 06:51 PM
mrtg tweak eyexer0 Linux - General 1 06-03-2003 04:30 AM
tweak lakshman Linux - General 2 01-30-2003 03:57 AM

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

All times are GMT -5. The time now is 01:35 PM.

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