Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS: Dynamic NS and Static NS at meantime
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Mon Mar 29, 2004 8:17 pm    Post subject: DNS: Dynamic NS and Static NS at meantime Reply with quote

Hi,

on my Gentoo-System there is an DSL-Connection on the one hand and a static route to my laptop on the other hand. The laptop itself runs a BIND-server for my Intranet.

The resolv.conf now has 2 Nameserver-IPs which belong to the DSL-Provider.
But at meantime, I still want to be able to resolv domains belonging to the Intranet, so I actually had to add a third NS (namely the IP of my laptop).

How can I do this?
Everytime I (re)start the resolv.conf is (of course) new created so I'd lose the record for the DNS-server of the intranet.

Thanks in advance! :D
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
Will Scarlet
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 238

PostPosted: Tue Mar 30, 2004 5:58 pm    Post subject: Reply with quote

I'm assuming that you use dhcpcd on the DSL connection. So use the "-R" option for dhcpcd. Example: dhcpcd -R eth0

If you use the net.xxx scrips in init.d, then edit /etc/conf.d/net and modify the dhcpcd_xxx line for your interface for the DSL connection and add -R to it.

Just so you now what the -R does:

-R Prevents dhcpcd from replacing existing /etc/resolv.conf file.

Which is from man for dhcpcd.
Back to top
View user's profile Send private message
MarkG
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2002
Posts: 90
Location: Dorset, UK

PostPosted: Tue Mar 30, 2004 8:50 pm    Post subject: Reply with quote

A slight enhancement,

As well as adding the -R to the dhcpcd options. If you are using bind you can turn on DNS forwarding in your intranet name server by adding something like this to you're named.conf
Code:
        forward first;
        forwarders {
                1.2.3.4;
                1.2.3.5;
        };

replace 1.2.3.4 with the IP of your ISPs name servers that were inserted in to resolv.conf. The only thing you need in resolve.conf is the IP address of your name server.

MarkG
Back to top
View user's profile Send private message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Fri Apr 02, 2004 3:25 pm    Post subject: Reply with quote

Thank you everyone! :)
The forwarding on my BIND server is activated, but the tricky thing with DHCP was still unknown to me.

Thanks again.
Georg
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Fri Apr 02, 2004 4:28 pm    Post subject: Reply with quote

Hi,

just one more question:
The DSL-Connection goes from eth1 <-> ppp0. So actually ppp0 gets the dynamic IP through a DHCPd of my DSL-Provider (right?).

How to configure the device now?

[BTW, eth0 is the interface for my LAN.]
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
Will Scarlet
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 238

PostPosted: Fri Apr 02, 2004 7:36 pm    Post subject: Reply with quote

What PPPoE program are you using?
Back to top
View user's profile Send private message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Fri Apr 02, 2004 7:37 pm    Post subject: Reply with quote

I'm using the adsl-start script, thus Roaring Penguin.
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
Will Scarlet
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 238

PostPosted: Fri Apr 02, 2004 8:20 pm    Post subject: Reply with quote

Two places for you to look

1. The Gentoo Install Handbook Networking Section. Tells you how to setup with init scripts.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2

2. Roaring Penguin's HowTo. The main thing out of here is the editing of /etc/ppp/pppoe.conf
http://www.roaringpenguin.com/products/rp-pppoe/how-to-connect.txt

If you need further help, just let me know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum