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.
- 01-09-2008 #1Just 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
- 01-09-2008 #2
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?
- 01-10-2008 #3Just 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
- 01-10-2008 #4Just 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
- 01-10-2008 #5
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?
- 01-10-2008 #6
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.


Reply With Quote
