| View previous topic :: View next topic |
| Author |
Message |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Mon Nov 19, 2007 9:27 pm Post subject: What should the "/etc/resolv.conf" file contain? [ |
|
|
Until today I thought that the /etc/resolv.conf file holds the DNS addresses of the ISP. I have a 2Mbps connection, and I know that I am connected at that speed because I am able to download files at the speed of ~150KB/s. But, when I am trying to visit a web page or use to emerge command to fetch a file things get pretty slow.
I believe that this is because the /etc/resolv.conf does not contain the right information. I have contacted the ISP customer support and they have given me their DNS addresses, which I copied them in this file. At the end of the file, I have the ip address of the router.
Is there something else that I need to add in this file?
Last edited by MasterX on Sat Nov 24, 2007 8:58 am; edited 1 time in total |
|
| Back to top |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3745 Location: sleeping in the bathtub
|
Posted: Mon Nov 19, 2007 9:34 pm Post subject: |
|
|
It should be "nameserver ip address", however you can set this in /etc/conf.d/net and it'll automatically generate resolve.conf.
For example, you could just set dns_servers_eth0="192.168.1.254" in the net conf file. _________________ "You have to invite me in" |
|
| Back to top |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Tue Nov 20, 2007 10:39 am Post subject: |
|
|
@Hopeless, thank you for your reply. I am using the syntax that you mentioned. I did not know that I could set the DNS from the /etc/conf.d/net file. I will give it a try...
I just can not understand how is it possible to download a file with 150KB/s and emerge can not fetch some files (these files do exist on the server, because if I copy paste their URL to Kget, they will be downloaded in a couple of seconds).
If this is not a problem with the DNS address, then what else could cause this behavior..
BTW, I am using a wifi modem/router |
|
| Back to top |
|
 |
Dagger Developer


Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Tue Nov 20, 2007 1:05 pm Post subject: |
|
|
to speed it up you might want to install some light dns cache. dnsmasq should do just fine. It's working pretty good for me on a mail server which is bombarded with over 15k emails per hour, and needs to SPF check every single one. _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
| Back to top |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Tue Nov 20, 2007 8:05 pm Post subject: |
|
|
| Dagger wrote: | | to speed it up you might want to install some light dns cache. dnsmasq should do just fine. It's working pretty good for me on a mail server which is bombarded with over 15k emails per hour, and needs to SPF check every single one. |
I will give it a try. Do I need to configure it?
All I did was to emerge the program and run dnsmaq
EDIT: I restarted the net.eth1 script, but the /etc/resolv.conf file contains only the modem ip address. Should not dnsmaq have acquired the ISP's dns address? |
|
| Back to top |
|
 |
Dagger Developer


Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Wed Nov 21, 2007 12:37 pm Post subject: |
|
|
By default dns is requested from DHCP server and overwrites your resolv.conf
You might also take a look on net-dns/resolvconf-gentoo and reemerge dnsmasq with resolv.conf
It sorted my problems with overwriting resolv.conf from VPN.
(thanks UberLord!) _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
| Back to top |
|
 |
MasterX Veteran

Joined: 26 Jun 2003 Posts: 1165
|
Posted: Sat Nov 24, 2007 8:58 am Post subject: |
|
|
| Dagger wrote: | By default dns is requested from DHCP server and overwrites your resolv.conf
You might also take a look on net-dns/resolvconf-gentoo and reemerge dnsmasq with resolv.conf
It sorted my problems with overwriting resolv.conf from VPN.
(thanks UberLord!) |
Thanks, these two programs helped a lot |
|
| Back to top |
|
 |
|