View previous topic :: View next topic |
Author |
Message |
zatalian Apprentice
Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
Posted: Sun Sep 16, 2007 5:00 pm Post subject: another dnsmasq & vpnc question |
|
|
I know there are a lot of topics on this but i couldn't find an anser to my question.
I have a normal isp and a vpn connection to my work.
I get the nameservers from my isp in /etc/resolvconf/run/interfaces/eth0
Code: | # Generated by dhcpcd for interface eth0
search telenet.be
nameserver 195.130.130.130
nameserver 195.130.129.162
|
when i start vpnc i get the nameservers of my work in /etc/resolvconf/run/interfaces/hogent
Code: | nameserver 193.190.126.26
nameserver 193.191.155.1
domain hogent.be |
resolvconf combines these 2 files to something like this :
Code: | search telenet.be hogent.be
nameserver 195.130.130.130
nameserver 195.130.129.162
nameserver 193.190.126.26
|
to which /etc/resolv.conf was linked. That did not work, the names from the internal network from my work did not resolve. So I installed dnsmasq. I used the following options :
Code: |
domain-needed
bogus-priv
resolv-file=/etc/resolvconf/run/interfaces/eth0
strict-order
server=/vpn-pers.hogent.be/195.130.130.130
server=/.hogent.be/193.190.126.26
server=/.hogent.be/193.191.155.1
|
But i have 2 problems with this solution :
1. I don't like the fact that i have to type the nameservers of my work in the config file. I would prefer something like the resolv-file option that reads the nameservers from my isp
2. My work has a lot of names that are public (like vpn-pers.hogent.be, but also mail-in.hogent.be, mail-out.hogent.be, ...). Those names don't work with the nameservers from my isp anymore, unless i create a line like the one for the vpn-pers.hogent.be name.
What i would like from dnsmasq is that i only looks at the nameservers from my work if it can't resolve a name with the servers from my isp. Is that possible. I also would like dnsmasq to look at the file /etc/resolvconf/run/interfaces/hogent |
|
Back to top |
|
|
zatalian Apprentice
Joined: 27 Aug 2002 Posts: 179 Location: Gent, Belgium
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|