You are not logged in.

#1 2008-02-29 02:04:42

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Have a permanent resolv.conf

Sometimes I can't wget (for conky purposes) mail.gmail.com, other times it works and resolves to 209.85.201.83. Would it be possible, or even practical to put that into resolv.conf so it always uses that IP or would that not work if I used a different network?

Offline

#2 2008-02-29 02:53:17

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Have a permanent resolv.conf

It would go into /etc/hosts, not resolv.conf

Anyway, install bind and the DNS resolving will be far more reliable wink

Offline

#3 2008-02-29 03:23:52

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Have a permanent resolv.conf

Thanks. At the moment it is working, but I also did just go to my inbox and it always works after that, we'll see how long it keeps it up. What exactly does the package do and do I have to do everything in the wiki or should installing it be enough?

Offline

#4 2008-03-01 06:07:34

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Have a permanent resolv.conf

One day later and it still has the same problem and after reading through bind, I don't think it is what I'm looking for.

Offline

#5 2008-03-01 14:52:08

gorn
Member
Registered: 2008-02-01
Posts: 56

Re: Have a permanent resolv.conf

Add this to /etc/hosts

# Always resolve gmail and shortcut "gmail" to it too
209.85.201.83    mail.google.com gmail

Should work

Offline

#6 2008-03-01 16:13:11

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Have a permanent resolv.conf

That what I was thinking, and it does work. However, if I were to use a different connection (this is a laptop) should gmail always resolve to that or will it cause problems?

Offline

Board footer

Powered by FluxBB