[nflug] fedora 4 DNS
David J. Andruczyk
djandruczyk at yahoo.com
Thu Mar 30 09:16:31 EST 2006
Your dig command won't work because your machine isn't authoritve for
that domain, and that domain probably isn't registered with a registrar
and listed with a pair of authoritive dns sservers. You need to use a
directe focused query like dig @dns_server_ip some_host_name.
i.e. if your dns server is 192.168.2.50, you'd run "dig at 192.168.2.50
joe16blow.com"
Also if you add zones, make sure the permissions of the zone file are
set correctly. Typically 644, named:named i.e.
-rw-r--r-- 1 named named 565 Oct 10 2004 192.168.0
the zone files are usually kept in /var/named or /var/bind or a subdir
under one of those two. distros tend to stick that stuff in slightly
different places..
also check /var/log/messages after starting named as it WILL complain
if there's anything wrong with the zone files or master config file(s)
--- anthonyriga <torrodimerda at yahoo.com> wrote:
> Im trying to setup DNS but cat get any answer when I
> do a dig command. Here is the named.conf
> Any suggestions?
>
> [root at ns1 etc]# vi named.conf
> inet 127.0.0.1 allow { localhost; } keys {
> rndckey; };
> };
> zone "." {
> type hint;
> file "named.ca";
> };
> zone "0.0.127.in-addr.arpa" {
> type master;
> file "named.local";
> };
> zone "15.168.192.IN-ADDR.ARPA" {
> type master;
> file "15.168.192.in-addr.arpa";
> };
> zone "mytest1.com."{
> type master;
> file "mytest1.com.";
> };
> zone "joe16blow.com. "{
> type master;
> file "joe16blow.com.";
> };
> include "/etc/rndc.key";
>
>
> $TTL 43200
> @ IN SOA ns1.anthonyriga.com.
> hostmaster.anthonyriga.com. (
> 2006032814 ; serial
> 1H ; refresh
> 15M ; retry
> 14D ; expire
> 12H ; default_ttl
> )
> @ IN NS ns1.anthonyriga.com.
> IN MX 5 ns1.anthonyriga.com.
> IN A 192.168.15.206
> www IN A 192.168.15.206
>
>
>
>
> dig joe16blow.com
>
> ; <<>> DiG 9.3.1 <<>> joe16blow.com
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:
> 31134
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
> ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;joe16blow.com. IN A
>
> ;; AUTHORITY SECTION:
> com. 10111 IN SOA
> a.gtld-servers.net. nstld.verisign-grs.com. 1143659152
> 1800 900 604800 900
>
> ;; Query time: 2 msec
> ;; SERVER: 192.168.15.206#53(192.168.15.206)
> ;; WHEN: Wed Mar 29 19:17:43 2006
> ;; MSG SIZE rcvd: 104
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
Dave J. Andruczyk
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug
More information about the nflug
mailing list