Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I have created a simple DNS server on Redhat linux 9. When I query for the domain name from another host in the same network using host command , ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    9

    Local DNS server returns no answer records


    Hi,

    I have created a simple DNS server on Redhat linux 9. When I query for the domain name from another host in the same network using host command , I get null answer records from the DNS. Suggestions will be appreciated .

    thanks,
    shashi

  2. #2
    Just Joined! vigour's Avatar
    Join Date
    Oct 2007
    Posts
    68
    Can you write down a little bit more detailed scenario. You are just querying the DNS server for any domain name (e.g. linuxforums.org) or you have created a particular domain's zone and try to query that one?

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    9

    Local DNS server returns no answer records

    Hi vigour,

    I had setup a very basic dns server as below:

    zone "fun.com" { type master; file "/etc/log.d/conf/services/db.fun.com";};

    the Zone file contents are :
    $TTL 604800
    @ IN SOA ns1.fun.com. root.fun.com. (
    2006020201 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800); Negative Cache TTL
    IN NS ns1
    fun.com. IN A 192.168.1.1
    www IN A 192.168.1.1
    ns1 IN A 192.168.1.1


    When i run the command host fun.com , I dont receive any answer RRs from DNS, but if i run GET Fun.com I get the IP address from the name server, dont understand why? please advice
    thanks,
    shashi

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2007
    Posts
    9

    Local DNS server returns no answer records

    Hi vigour,

    I had setup a very basic dns server as below:

    zone "fun.com" { type master; file "/etc/log.d/conf/services/db.fun.com";};

    the Zone file contents are :
    $TTL 604800
    @ IN SOA ns1.fun.com. root.fun.com. (
    2006020201 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200 ; Expire
    604800); Negative Cache TTL
    IN NS ns1
    fun.com. IN A 192.168.1.1
    www IN A 192.168.1.1
    ns1 IN A 192.168.1.1


    When i run the command host fun.com , I dont receive any answer RRs from DNS, but if i run GET Fun.com I get the IP address from the name server, dont understand why? please advice

    thanks,
    shashi

  6. #5
    Just Joined! vigour's Avatar
    Join Date
    Oct 2007
    Posts
    68
    Are you using the recently setuped DNS server as NS server in your /etc/resolv.conf? Or you are querying an external one?

    Let's say your DNS server has an IP address of 192.168.0.1
    Is this the IP address you put in your /etc/resolv.conf from the machine you try to look up fun.com?

  7. #6
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    And when I have setup DNS servers on my FreeBSD boxes the file where you specify the DNS server to use, I guess it's this /etc/resolv.conf, has 127.0.0.1 in it. That means the DNS server is on the same box. The rest figures out named by itself.
    Bus Error: Passengers dumped. Hech gap yo'q.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •