* [gentoo-user] specifying DNS servers
@ 2005-09-22 18:43 Mark
2005-09-22 18:57 ` Dave Nebinger
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Mark @ 2005-09-22 18:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
Can I specify different DNS servers for each of my two physical interfaces
to use? One nic is configured for DHCP, and the other is static. The DHCP
enabled NIC gets its DNS server list automatically and updates (overwrites)
/etc/resolv.conf. How can I point my static IP NIC to a different DNS server
since it's on a different network? Or is there a different/better solution?
--
Mark
[unwieldy legal disclaimer would go here - feel free to type your own]
[-- Attachment #2: Type: text/html, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [gentoo-user] specifying DNS servers
2005-09-22 18:43 [gentoo-user] specifying DNS servers Mark
@ 2005-09-22 18:57 ` Dave Nebinger
2005-09-22 19:06 ` gentuxx
2005-09-22 19:37 ` Eric Crossman
2005-09-22 23:04 ` Bryan Whitehead
2 siblings, 1 reply; 10+ messages in thread
From: Dave Nebinger @ 2005-09-22 18:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
Name resolution is name resolution, whether on the static line or the
dynamic line. What difference does it make?
-----Original Message-----
From: Mark [mailto:whitetr6@gmail.com]
Sent: Thursday, September 22, 2005 2:44 PM
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] specifying DNS servers
Can I specify different DNS servers for each of my two physical interfaces
to use? One nic is configured for DHCP, and the other is static. The DHCP
enabled NIC gets its DNS server list automatically and updates (overwrites)
/etc/resolv.conf. How can I point my static IP NIC to a different DNS server
since it's on a different network? Or is there a different/better solution?
--
Mark
[unwieldy legal disclaimer would go here - feel free to type your own]
[-- Attachment #2: Type: text/html, Size: 3348 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-22 18:57 ` Dave Nebinger
@ 2005-09-22 19:06 ` gentuxx
2005-09-22 19:23 ` Dave Nebinger
2005-09-22 19:25 ` Brian Downey
0 siblings, 2 replies; 10+ messages in thread
From: gentuxx @ 2005-09-22 19:06 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dave Nebinger wrote:
> <!-- /* Font Definitions */ @font-face {font-family:Tahoma;
> panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal,
> li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt;
> font-size:12.0pt; font-family:"Times New Roman";} a:link,
> span.MsoHyperlink {color:blue; text-decoration:underline;}
> a:visited, span.MsoHyperlinkFollowed {color:purple;
> text-decoration:underline;} p.FigureDescription,
> li.FigureDescription, div.FigureDescription {margin:0in;
> margin-bottom:.0001pt; text-align:center; font-size:10.0pt;
> font-family:"Times New Roman"; font-style:italic;} p.BoxedCode,
> li.BoxedCode, div.BoxedCode {margin:0in; margin-bottom:.0001pt;
> background:#E0E0E0; border:none; padding:0in; font-size:9.0pt;
> font-family:"Courier New";} span.EmailStyle19 {font-family:Arial;
> color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in
> 1.0in 1.0in;} div.Section1 {page:Section1;} -->
>
> Name resolution is name resolution, whether on the static line or
> the dynamic line. What difference does it make?
>
If they are on different networks, one interface may not be able to
see the other interface, therefore not the name servers either.
>
>
> -----Original Message-----
> *From:* Mark [mailto:whitetr6@gmail.com]
> *Sent:* Thursday, September 22, 2005 2:44 PM
> *To:* gentoo-user@lists.gentoo.org
> *Subject:* [gentoo-user] specifying DNS servers
>
>
>
> Can I specify different DNS servers for each of my two physical
> interfaces to use? One nic is configured for DHCP, and the other is
> static. The DHCP enabled NIC gets its DNS server list automatically
> and updates (overwrites) /etc/resolv.conf. How can I point my static
> IP NIC to a different DNS server since it's on a different network?
> Or is there a different/better solution?
>
> --
> Mark
> [unwieldy legal disclaimer would go here - feel free to type your own]
>
- --
gentux
echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
gentux's gpg fingerprint ==> 34CE 2E97 40C7 EF6E EC40 9795 2D81 924A
6996 0993
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDMwC+LYGSSmmWCZMRApGaAJ0XaftKmVdDpsoMJx4UUY/Kb0EiYwCfR7d0
IWcIp4dWNTokqIlPa+UiQ7Q=
=kUcl
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [gentoo-user] specifying DNS servers
2005-09-22 19:06 ` gentuxx
@ 2005-09-22 19:23 ` Dave Nebinger
2005-09-22 19:25 ` Brian Downey
1 sibling, 0 replies; 10+ messages in thread
From: Dave Nebinger @ 2005-09-22 19:23 UTC (permalink / raw
To: gentoo-user
> >
> > Name resolution is name resolution, whether on the static line or
> > the dynamic line. What difference does it make?
> >
>
> If they are on different networks, one interface may not be able to
> see the other interface, therefore not the name servers either.
But if one /etc/resolv.conf dns points to what is served by one side, and
another points to a DNS for the other side, then name resolution, regardless
of the source, still works.
The only conflict I see is if you have a different ip address for a host
depending upon which nic you use - i.e. yahoo.com resolves to one address on
the dhcp'd line, but a different address when resolved across the static
line. Then you have issues.
If the OP's problem was strictly the overwrite of /etc/resolv.conf by the
dhcp app, he could disable the auto-overwrite of /etc/resolv.conf and use
the scripting capabilities to massage the /etc/resolv.conf to include one or
more of the dns servers provided by the dhcp process.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-22 19:06 ` gentuxx
2005-09-22 19:23 ` Dave Nebinger
@ 2005-09-22 19:25 ` Brian Downey
1 sibling, 0 replies; 10+ messages in thread
From: Brian Downey @ 2005-09-22 19:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
On Sep 22, 2005, at 3:06 PM, gentuxx wrote:
>>
>> Name resolution is name resolution, whether on the static line or
>> the dynamic line. What difference does it make?
>>
>>
>
> If they are on different networks, one interface may not be able to
> see the other interface, therefore not the name servers either.
Is that true? I think unless forced, the internal routing setup
during an ifconfig takes care of that very problem.
As for the original poster, you could just tell dhcpd not to
overwrite your resolv.conf. But I think you'd be better off re-
evaluating your situation. What are you trying to achieve?
-B
[-- Attachment #2: Type: text/html, Size: 2155 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-22 18:43 [gentoo-user] specifying DNS servers Mark
2005-09-22 18:57 ` Dave Nebinger
@ 2005-09-22 19:37 ` Eric Crossman
2005-09-22 23:04 ` Bryan Whitehead
2 siblings, 0 replies; 10+ messages in thread
From: Eric Crossman @ 2005-09-22 19:37 UTC (permalink / raw
To: gentoo-user
On Thu, 2005-09-22 at 14:43 -0400, Mark wrote:
> Can I specify different DNS servers for each of my two physical
> interfaces to use? One nic is configured for DHCP, and the other is
> static. The DHCP enabled NIC gets its DNS server list automatically
> and updates (overwrites) /etc/resolv.conf. How can I point my static
> IP NIC to a different DNS server since it's on a different network? Or
> is there a different/better solution?
>
> --
> Mark
> [unwieldy legal disclaimer would go here - feel free to type your own]
I will venture a guess that the reason you want to do this is that each
DNS server can resolve some but not all of the names/IPs that you need
to resolve. In addition, rather than waiting for the resolver to timeout
and move onto the next nameserver, you would like send DNS queries to
the appropriate DNS server on the first attempt.
If the above is true, one of the things you could do is run a local
caching nameserver and point resolv.conf to localhost (127.0.0.1). You
would then configure forwarders (upstream DNS servers) on a domain by
domain basis as well as a default one. This is especially easy to do
with dnscache/tinydns.
Eric
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-22 18:43 [gentoo-user] specifying DNS servers Mark
2005-09-22 18:57 ` Dave Nebinger
2005-09-22 19:37 ` Eric Crossman
@ 2005-09-22 23:04 ` Bryan Whitehead
2005-09-23 13:38 ` Mark
2 siblings, 1 reply; 10+ messages in thread
From: Bryan Whitehead @ 2005-09-22 23:04 UTC (permalink / raw
To: gentoo-user
No.
Look into a split DNS setup:
http://www.networkworld.com/columnists/2001/00288013.html
On Thu, 22 Sep 2005, Mark wrote:
> Can I specify different DNS servers for each of my two physical interfaces
> to use? One nic is configured for DHCP, and the other is static. The DHCP
> enabled NIC gets its DNS server list automatically and updates (overwrites)
> /etc/resolv.conf. How can I point my static IP NIC to a different DNS server
> since it's on a different network? Or is there a different/better solution?
>
> --
> Mark
> [unwieldy legal disclaimer would go here - feel free to type your own]
>
--
Bryan Whitehead
Email:driver@megahappy.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-22 23:04 ` Bryan Whitehead
@ 2005-09-23 13:38 ` Mark
2005-09-23 14:36 ` Neil Bothwick
0 siblings, 1 reply; 10+ messages in thread
From: Mark @ 2005-09-23 13:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]
Well, here's the situation. My machine is on a small corporate network that
uses a Microsoft proxy. I am not able to get portage to work, even with
webrsync and even after installing ntlmaps. I also have access to a DSL
connection in the same office. So what I want to do is connect one NIC to
the DSL router, and the other NIC to the internal LAN. Since I can't control
the fact that the DSL is dynamic, but I can assign a static address on the
internal, I let the DSL provide my default gateway, and I assigned only the
IP and mask to the internal. Then I added a route for the other internal
subnets. I receive internet DNS information from the DSL connection, so no
problem there. But I want my internal connection to know about the internal
DNS servers as well.
Given all of that, which of the above suggestions is my best bet?
Thanks guys
On 9/22/05, Bryan Whitehead <driver@megahappy.net> wrote:
>
> No.
>
> Look into a split DNS setup:
> http://www.networkworld.com/columnists/2001/00288013.html
>
> On Thu, 22 Sep 2005, Mark wrote:
>
> > Can I specify different DNS servers for each of my two physical
> interfaces
> > to use? One nic is configured for DHCP, and the other is static. The
> DHCP
> > enabled NIC gets its DNS server list automatically and updates
> (overwrites)
> > /etc/resolv.conf. How can I point my static IP NIC to a different DNS
> server
> > since it's on a different network? Or is there a different/better
> solution?
> >
> > --
> > Mark
> > [unwieldy legal disclaimer would go here - feel free to type your own]
> >
>
> --
> Bryan Whitehead
> Email:driver@megahappy.net
> --
> gentoo-user@gentoo.org mailing list
>
>
--
Mark
[unwieldy legal disclaimer would go here - feel free to type your own]
[-- Attachment #2: Type: text/html, Size: 2279 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-23 13:38 ` Mark
@ 2005-09-23 14:36 ` Neil Bothwick
2005-09-23 17:59 ` Bryan Whitehead
0 siblings, 1 reply; 10+ messages in thread
From: Neil Bothwick @ 2005-09-23 14:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]
On Fri, 23 Sep 2005 09:38:48 -0400, Mark wrote:
> I receive internet DNS information from the DSL connection, so no
> problem there. But I want my internal connection to know about the
> internal DNS servers as well.
Assuming your internal DNS servers give an almost instant response (they
should do on a small LAN), you can put all the servers
in /etc/resolve.conf, with the internal ones at the top. Then set your
DHCP options in /etc/conf.d/net to not overwrite /etc/resolv.conf.
Now all you queries should go to the internal servers first. If they
don't have (and won't forward and cache) external DNS information, the
resolver will try the next server, the ISP one.
If your internal servers are also connected to the Internet, you may not
even need an external server.
> Given all of that, which of the above suggestions is my best bet?
There's nothing above, you top-posted :(
--
Neil Bothwick
Remember, it takes 47 muscles to frown
And only 4 to pull the trigger of a sniper rifle....
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] specifying DNS servers
2005-09-23 14:36 ` Neil Bothwick
@ 2005-09-23 17:59 ` Bryan Whitehead
0 siblings, 0 replies; 10+ messages in thread
From: Bryan Whitehead @ 2005-09-23 17:59 UTC (permalink / raw
To: gentoo-user
This might work, but the "correct" way to do this is still a split DNS.
Since this machine is on the border of private/public networks it should
combine the two. Your DNS on this border box should be a slave to the
internal master. These slave records should be restricted to being queries
from the private addresses. The rest of the DNS records can be pulled from
the internet/ISP's DNS.
On Fri, 23 Sep 2005, Neil Bothwick wrote:
> On Fri, 23 Sep 2005 09:38:48 -0400, Mark wrote:
>
>> I receive internet DNS information from the DSL connection, so no
>> problem there. But I want my internal connection to know about the
>> internal DNS servers as well.
>
> Assuming your internal DNS servers give an almost instant response (they
> should do on a small LAN), you can put all the servers
> in /etc/resolve.conf, with the internal ones at the top. Then set your
> DHCP options in /etc/conf.d/net to not overwrite /etc/resolv.conf.
>
> Now all you queries should go to the internal servers first. If they
> don't have (and won't forward and cache) external DNS information, the
> resolver will try the next server, the ISP one.
>
> If your internal servers are also connected to the Internet, you may not
> even need an external server.
>
>> Given all of that, which of the above suggestions is my best bet?
>
> There's nothing above, you top-posted :(
>
>
>
--
Bryan Whitehead
Email:driver@megahappy.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-09-23 18:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22 18:43 [gentoo-user] specifying DNS servers Mark
2005-09-22 18:57 ` Dave Nebinger
2005-09-22 19:06 ` gentuxx
2005-09-22 19:23 ` Dave Nebinger
2005-09-22 19:25 ` Brian Downey
2005-09-22 19:37 ` Eric Crossman
2005-09-22 23:04 ` Bryan Whitehead
2005-09-23 13:38 ` Mark
2005-09-23 14:36 ` Neil Bothwick
2005-09-23 17:59 ` Bryan Whitehead
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox