Operating System - HP-UX
1830250 Members
2673 Online
110000 Solutions
New Discussion

Re: Problem w/ DNS forwarding

 
SOLVED
Go to solution
SDVICK1
Advisor

Problem w/ DNS forwarding

Everyone,

I am running a DNS server for some domains and am forwarding request for other domains. Here is a sample of my zone configurations...

zone "zone1.corp" {
type forward;
forwarders {100.1.19.25; 100.1.1.168; };
};

zone "zone1.corp" {
type forward;
forwarders {100.1.19.11; 100.1.1.88; };
};

zone "zone2.com" {
type master;
file "db.zone1";
};

I'm trying to add a second domain to forward to but after modifying the named.conf file in /etc it will still forward to the first domain (zone1) but it is not forwarding the request to the new domain (zone3). I'm running HP-UX 11.11.

What am I missing? Any and all help will be appreciated.
I drank what?? - Socrates
9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: Problem w/ DNS forwarding

You example seems to be wrong, I see two zone1.corp and zone3 is not listed. Have you reloaded named after the file modification?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SDVICK1
Advisor

Re: Problem w/ DNS forwarding

That was a typo on my part... It should look like this:

zone "zone1.corp" {
type forward;
forwarders {100.1.19.25; 100.1.1.168; };
};

zone "zone3.corp" {
type forward;
forwarders {100.1.19.11; 100.1.1.88; };
};

zone "zone2.com" {
type master;
file "db.zone1";
};

And yes, I restarted named. I did both a sig_named restart and I also manually killed it and restarted the daemon.
I drank what?? - Socrates
Ivan Ferreira
Honored Contributor
Solution

Re: Problem w/ DNS forwarding

Add the "forward only;" declaration to your zones and then provide the output of:

dig zone1.corp NS
dig zone2.corp NS
dig zone3.corp NS
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SDVICK1
Advisor

Re: Problem w/ DNS forwarding

Please forgive my ignorance... I just inherited this system so, I'm having to learn on the fly. When you say "add "forward only"" to the zones, do you mean like this:

zone "zone1.corp" {
type forward only;
forwarders {100.1.19.25; 100.1.1.168; };
};
I drank what?? - Socrates
Ivan Ferreira
Honored Contributor

Re: Problem w/ DNS forwarding

Should be like this:

zone "zone3.corp" {
type forward;
forward only;
forwarders {100.1.19.11; 100.1.1.88; };
};
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SDVICK1
Advisor

Re: Problem w/ DNS forwarding

Here is the output from the three "dig" commands. Because I'm having to disguise the true names of the servers, there may be a letter or two missing from a name. If you have a question about one, let me know.

I drank what?? - Socrates
Ivan Ferreira
Honored Contributor

Re: Problem w/ DNS forwarding

Looks like correct answers are obtained, can you explain the problem again please? With an example if possible.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SDVICK1
Advisor

Re: Problem w/ DNS forwarding

Once I entered the "forward only" it started working. Points will be assigned soon.
I drank what?? - Socrates
SDVICK1
Advisor

Re: Problem w/ DNS forwarding

Thanx!!
I drank what?? - Socrates