Quote:
Originally Posted by lion_heart_300
my file name it linuxgood.com.zone
it is
Code:
$TTL 3h
@ IN SOA @(
1 ; Serial Number
30m ; Refresh Rate
15m ; Retry Interval
1w ; Expire Delay
1h ) ; Negative Cache TTL
IN NS
www IN A 192.168.1.1
and when i do
ping www.linuxgood.com
it say ping: unknown host
what i can do please help me
|
It looks like you need to do a bit of reading up on how to configure DNS.
Firstly do you have the named daemon running ?
The zone file is imcomplete and you have left out quite a bit, you need to add entries for the SOA and @ as well as the IP address of the server AND the dot "." entries after EACH *.com name.
Also have you created the entry for the name server in /var/named/chroot/var/named/named.ca ? as well as the zone file and reverse look up entries to /etc/named.conf ?
You will need to get DNS running first before you do anything else.
Instead of using ping to check your entries , use dig ,
IE
Code:
dig linuxgood.com
dig -x 192.168.1.1 ( requires a reverse look up file linuxgood.rev )
This is the better way of checking if DNS is running.
You can also use nslookup as well to check the entries
IE
Code:
nslookup linuxgood.com
nslookup 192.168.1.1
Also , every time you change an entry in any of the config files , you will have to restart named
I will attach a working zone file example to give you an idea of how a zone file should look.
Code:
NOTE : The inclusion of the dots "." after each of the .com enties !!!!!!
DNS is very particular about the dot entries.
$TTL 86400
@ IN SOA panther.com. webmaster.panther.com. (
20020827; serial
3H ; refresh
15M ; retry
1W ; expire
1D ) ; minimum TTL
IN NS emubitter.panther.
MX 10 mail.panther.com.
@ IN A 192.168.0.2
panther.com. IN A 192.168.0.2
mail.panther.com. IN A 192.168.0.2
steve1.panther.com. IN A 192.168.0.22
steve2.panther.com. IN A 192.168.0.24
steve3.panther.com. IN A 192.168.0.26
www.panther.com. IN CNAME panther.com.
www.panther.com. IN CNAME steve1.panther.com.
www.steve2.panther.com. IN CNAME steve2.panther.com.
www.steve3.panther.com. IN CNAME steve3.panther.com.