|
|
|
|
|
|
| Author |
Message |
Keve Nagy *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 250
|
Posted: Wed Jul 19, 2006 7:02 pm Post subject:
Re: How to enable name resolution in my home network?
|
|
|
I duplicate this message as I posted it to the wrong hierarchy earlier.
Keve Nagy wrote:
Question #1 can be resolved with two new lines in my ppp.conf.
enable dns
resolv writable
Although, I believe having a local named is more efficient.
I will have a look at named, the example file and dnsmasq.
Thanks for the ideas, guys!
Very much appreciated!
Regards,
Keve
--
if you need to reply directly:
keve(at)mail(dot)poliod(dot)hu |
|
| Back to top |
|
 |
Keve Nagy *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 250
|
Posted: Wed Jul 19, 2006 7:00 pm Post subject:
Re: How to enable name resolution in my home network?
|
|
|
Keve Nagy wrote:
Question #1 can be resolved with two new lines in my ppp.conf.
enable dns
resolv writable
Although, I believe having a local named is more efficient.
I will have a look at named, the example file and dnsmasq.
Thanks for the ideas, guys!
Very much appreciated!
Regards,
Keve
--
if you need to reply directly:
keve(at)mail(dot)poliod(dot)hu |
|
| Back to top |
|
 |
Thomas Koellmann *nix forums beginner
Joined: 09 Apr 2005
Posts: 28
|
Posted: Wed Jul 19, 2006 5:01 pm Post subject:
Re: How to enable name resolution in my home network?
|
|
|
Stefan Ollermann <Stefan.Ollermann@gmx.de> writes:
| Quote: | On Wed, 19 Jul 2006 14:36:13 +0200
Keve Nagy <see_my_sig@mail.invalid> wrote:
So, how should this be done the proper way?
A good way is to enable a nameserver like bind on your gateway.
|
If you are new to setting up DNS, maybe try dnsmasq (in the ports, of
course) instead of bind. dnsmasq works very well (for small networks)
and is far easier to configure, IMHO.
Mit schönem Gruß
- Thomas
--
"Sonderbar, als ich herkam, schien mir alles so klar und gut,
und jetzt ist ja alles Unsinn!"
- Dostojewski, Die Brüder Karamasoff
/* PGP key auf Wunsch per e-mail || PGP key sent on request */ |
|
| Back to top |
|
 |
Stefan Ollermann *nix forums beginner
Joined: 31 Mar 2005
Posts: 45
|
Posted: Wed Jul 19, 2006 2:23 pm Post subject:
Re: How to enable name resolution in my home network?
|
|
|
On Wed, 19 Jul 2006 14:36:13 +0200
Keve Nagy <see_my_sig@mail.invalid> wrote:
| Quote: | Hi Everyone,
Question #1:
How should the name resolution work on this gateway machine?
I believed that the PPPoE connection will automatically sort this out,
but obviously it didn't. I added two nameserver lines to
/etc/resolv.conf, so name resolution works for now. Is this the proper
way? Do I need to use a resolv.conf file for this? Shouldn't the
nameserver information be received via the ppp connection?
|
You can configure nameserver you think are best for you in
your /etc/resolv.conf manually or you take this information from your
provider dynamically and trust your provider. Both ways work for your
gateway.
| Quote: | Question #2:
How should the name resolution work on a host behind the gateway?
NAT works fine. The pf rules are allowing the traffic through.
I use fixed IPs. The internal NIC in the gateway has 192.168.1.13, the
host on the LAN has 192.168.1.20, both having a netmask of
255.255.255.0. The LAN host has its gateway set to 192.168.1.13. What
should be the nameserver set to?
I tried setting it to 192.168.1.13, but that didn't work. Obviously
not, as there is no DNS running on my gateway. At the moment I entered
the same nameserver addresses that I have in the gateway's resolv.conf,
but I don't think this is the correct way.
So, how should this be done the proper way?
|
A good way is to enable a nameserver like bind on your gateway.
In /etc/resolv.conf you then have only 127.0.0.1. In named.conf you add
your providers nameserver and maybe some others as forwarders. The
machines on your LAN have to use your gateway as nameserver then. Those
machines could use an outside nameserver too but enable your own
nameserver makes them benefit from its cache.
| Quote: | Do I have to install a name server to my gateway? Since I do not know
much about name servers, I would like to avoid this for now. At least
until I have some time to learn the required things about DNS and how
to install and configure one. Since I don't know it, I find it scary.
But if you think it is not that scary at all, let me know and I may
give it a try.
|
The pretty good example config file is the only thing you have to read /
edit when you want a caching nameserver for your homenet and no advanced
setup.
| Quote: |
Regards,
Keve
--
if you need to reply directly:
keve(at)mail(dot)poliod(dot)hu
|
Best regards,
Stefan |
|
| Back to top |
|
 |
Keve Nagy *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 250
|
Posted: Wed Jul 19, 2006 12:56 pm Post subject:
Re: How to enable name resolution in my home network?
|
|
|
This is my current ppp.conf:
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
xDSL:
set device PPPoE:rl0
set authname username@isp.com
set authkey my_PPPoE_password
set dial
set login
add default HISADDR
It appears that an "enable dns" line is what I may need, which will put
my ISP's DNS addresses to my resolv.conf. However, under some
circumstances it is not recommended.
I am trying to figure out if I need this line or not.
Keve
--
if you need to reply directly:
keve(at)mail(dot)poliod(dot)hu |
|
| Back to top |
|
 |
Keve Nagy *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 250
|
Posted: Wed Jul 19, 2006 12:36 pm Post subject:
How to enable name resolution in my home network?
|
|
|
Hi Everyone,
I was wondering how domain name resolution should work inside my home
network. Obviously, I was wondering about that because it didn't work
for me, and I believe that the way I fixed it is not the proper way.
The environment:
I have a FreeBSD 5.4-STABLE machine with 2 NICs. One is connected to a
DSL bridge modem (ethernet modem) and the other is to a desktop switch.
I have gateway_enable="YES" in /etc/rc.conf, and I use PPPoE to connect
to my ISP using "ppp -ddial xDSL" which creates tun0 having a public IP
address.
I use pf and its built in NAT, allowing my home network behind this
machine to access the internet.
Question #1:
How should the name resolution work on this gateway machine?
I believed that the PPPoE connection will automatically sort this out,
but obviously it didn't. I added two nameserver lines to
/etc/resolv.conf, so name resolution works for now. Is this the proper
way? Do I need to use a resolv.conf file for this? Shouldn't the
nameserver information be received via the ppp connection?
Question #2:
How should the name resolution work on a host behind the gateway?
NAT works fine. The pf rules are allowing the traffic through.
I use fixed IPs. The internal NIC in the gateway has 192.168.1.13, the
host on the LAN has 192.168.1.20, both having a netmask of
255.255.255.0. The LAN host has its gateway set to 192.168.1.13. What
should be the nameserver set to?
I tried setting it to 192.168.1.13, but that didn't work. Obviously not,
as there is no DNS running on my gateway. At the moment I entered the
same nameserver addresses that I have in the gateway's resolv.conf, but
I don't think this is the correct way.
So, how should this be done the proper way?
Do I have to install a name server to my gateway? Since I do not know
much about name servers, I would like to avoid this for now. At least
until I have some time to learn the required things about DNS and how to
install and configure one. Since I don't know it, I find it scary. But
if you think it is not that scary at all, let me know and I may give it
a try.
Regards,
Keve
--
if you need to reply directly:
keve(at)mail(dot)poliod(dot)hu |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Dec 04, 2008 2:44 am | All times are GMT
|
|
Literatura fantastica | Fast Loans | Personal Loans | Online Advertising | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|