1819805 Members
2892 Online
109607 Solutions
New Discussion юеВ

dns forward not working

 
john ho_3
Occasional Contributor

dns forward not working

hi,

I have put the next two zones in the /etc/named.conf, but it didn't work what I want.
for example, when I do "nslookup belgium.eu.foreigner.mnc123.mcc456.gprs" the dns query will not forward to the extern DNS server 100.100.100.10x. Instead of going to zone "eu.foreigner.mnc123.mcc456.gprs" it goes to zone "mnc123.mcc456.gprs", result --> NXDOMAIN.

Can you guys have a look what is wrong with my configuration??

If you have any idea to solve my problem please let me know.

Many thanks.

John



zone "eu.foreigner.mnc123.mcc456.gprs" in {
type forward;
forwarders {
100.100.100.100;
100.100.100.101;
};
forward only;
};

zone "mnc123.mcc456.gprs" in {
type master;
file "root.zone";
allow-query {any;};
allow-update {none;};
allow-transfer {trusted-nameservers;};
};
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: dns forward not working

Shalom,

Suggest you turn on logging:

example:

/etc/named.conf

logging {
category lame-servers { null; };
category xfer-in { null; };
category xfer-out { null; };
// category update { null; };

};

Then look at syslog to /var/adm/syslog/syslog .log for furhter information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
john ho_3
Occasional Contributor

Re: dns forward not working

hi,

If I trun on debug in DNS server I see this:

> set debug
> belgium.eu.foreigner.mnc123.mcc456.gprs
Server: 127.0.0.1
Address: 127.0.0.1#53

------------
QUESTIONS:
belgium.eu.foreigner.mnc123.mcc456.gprs, type = A, class = IN
ANSWERS:
AUTHORITY RECORDS:
-> mnc123.mcc456.gprs
origin = dnsint01.mnc123.mcc456.gprs
mail addr = root.mnc123.mcc456.gprs
serial = 2006071001
refresh = 10800
retry = 3600
expire = 432000
minimum = 86400
ADDITIONAL RECORDS:
------------
** server can't find belgium.eu.foreigner.mnc123.mcc456.gprs: NXDOMAIN
>

As you can see it goes to the zone "mnc123.mcc456.gprs and not to zone "eu.foreigner.mnc123.mcc456.gprs".

any clue?

regards,

John
spex
Honored Contributor

Re: dns forward not working

John,

Did you bounce the named daemon after modifying named.conf?

# /sbin/init.d/named stop
# /sbin/init.d/named start

PCS
john ho_3
Occasional Contributor

Re: dns forward not working

hi,
DNS daemon was not really restart.
I had done rndc reload and I had checked the syslog.log and it is ok no error after the next messages:

Jul 31 15:34:41.129 general: info: loading configuration from '/etc/named.conf'

so any clue??

Regards,

//john