Operating System - Linux
1832765 Members
3380 Online
110045 Solutions
New Discussion

Re: can not build up dns server

 

can not build up dns server

i follow how-to to setup the dns server, so as to make resoving my private sub-domain, for example the test.mydomain.com;
#/etc/init.d/named restart
everything ok;
nmap 53 port is active;

after reset the nameserver setting in client to this server:/etc/resolv.conf;
i work as bellow on client:
#host test.mydomain.com
unkonwn host

that is all. i have tried on serverl computer neither on internet nor in lan, the result is similar, i think, i must do some thing wrong.

the setting file as bellow:
#/etc/init.d/named restart


/etc/named.conf

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "domain.com" {
type master;
file "domain.com.db";
};



domain.com.db

$TTL 76600
@ IN SOA domain.com. frederick.domain.com. (
2002062800;
10800;
900;
1000000;
30000;);
IN NS ns.domain.com.
IN NS mail.domain.com.
ns IN A 192.168.0.10;
mail IN A 192.168.0.11;
test IN A 123.234.324.22;

frederick
3 REPLIES 3

Re: can not build up dns server

above the domain.com and mydomain.com is not the false, it is unique in my host.

i check the /var/log/messages for named logs,

get
dns_rdata_fromtext: domain.com.db:7: near 'IN': extra input text

dns_zone_load: zone domain.com/IN: loading master file domain.com.db: extra input text

what is wrong???

frederick

Re: can not build up dns server

i have corrent as my possible in zone file until the /var/log/message have no other error other than :
zone domain.com/IN: no NS records

but the client also echo unknown host test.domain.com as before.

right yet the zone file is :

$TTL 76600
@ IN SOA daifumd.com. frederick_yu.daifumd.com. (
2002062800;
10800;
900;
1000000;
30000);
IN NS ns.daifumd.com.
IN NS mail.daifumd.com.
ns IN A 147.111.111.21
mail IN A 147.111.111.21
test IN A 123.234.124.22

what is the wrong else??

thanks
frederick



frederick

Re: can not build up dns server

thanks everyone,
i got it by add @ before NS.

frederick
frederick