Ask a Question related to Ubuntu, Design and Development.
-
Nick #1
Fixed IP address and resolv.conf problem
Hello
I'm probably doing something really daft here.
I've just switched from using DHCP (ip provided by my router) to a
static IP address 192.168.1.15
(I did this so I could easily use my machine as a NIS and NFS server)
I used the Gnome "network settings" tools to set my IP address, default
gateway, DNS etc to point my broadband router 192.168.1.1
Now some applications (such as apt-get) cannot resove URLs.
Interestingly, if I add the following line to /etc/resolv.conf it
temporarily works again, although I suspect this is not where I should
be specifying this.
nameserver 192.168.1.1
However, as the comments in resolv.conf indicate, whenever I reboot OR I
use pptp, the file /etc/resolv.conf gets overwritten.
BELOW IS MY /etc/network/interfaces FILE which seems ok to me.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
auto eth0
iface eth0 inet static
network 192.168.1.0
broadcast 192.168.1.255
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
Nick Guest
-
Change MAC address of LAN card in rc.conf. How?
Hi, I'm running 5.3 STABLE. I need to change the MAC address of my PC. I know it can be done like this: ifconfig rl0 ether... -
nameservers and resolv.conf(s): switching from charter cable to tds dsl
It seems to me when you configured your internet connection you told it not to pull down the name servers for you. You must have a... -
nameservers and resolv.conf(s): switching from charter cable to tds dsl
this afternoon I was looking through files on my system because when I added a new user, Pine wanted to give the user a chartermi.net domain even... -
nameservers and resolv.conf(s): switching from charter cable to tds dsl
I am using tds dsl with a paradyne modem and dhcpcd. I have a cable from my ethernet card to the modem and from the modem to the phone jack. I use... -
resolv.conf
I had a little trouble installing my ethernet cards drivers. Now the interface is up and works fine. But there is a problem with DNS.... -
Zygfryd Homonto #2
Re: Fixed IP address and resolv.conf problem
On Wed, 17 May 2006 17:06:10 +0100, Nick wrote:
and it should be like this> Now some applications (such as apt-get) cannot resove URLs.
> Interestingly, if I add the following line to /etc/resolv.conf it
> temporarily works again, although I suspect this is not where I should
> be specifying this.
> nameserver 192.168.1.1
> However, as the comments in resolv.conf indicate, whenever I reboot OR I
> use pptp, the file /etc/resolv.conf gets overwritten.
make /etc/resolv.conf static file
these services overwrite it:
/etc/init.d/pppd-dns
/etc/init.d/dns-clean
so if you don't use DHCP anymore disable them
or, if you don't know how or don't want to do it put in /etc/rc.local
something like this:
echo 'nameserver 192.168.1.1' >> /etc/resolv.conf
it should do what you want to get
--
Pozdrawiam
Zygfryd Homonto
galeria: [url]http://photo.e-janik.com[/url]
Zygfryd Homonto Guest
-
Nick #3
Re: Fixed IP address and resolv.conf problem
Zygfryd Homonto wrote:
Thanks for the quick response.> On Wed, 17 May 2006 17:06:10 +0100, Nick wrote:
>
>>>>Now some applications (such as apt-get) cannot resove URLs.
>>Interestingly, if I add the following line to /etc/resolv.conf it
>>temporarily works again, although I suspect this is not where I should
>>be specifying this.
>>nameserver 192.168.1.1
>>However, as the comments in resolv.conf indicate, whenever I reboot OR I
>>use pptp, the file /etc/resolv.conf gets overwritten.
>
> and it should be like this
> make /etc/resolv.conf static file
>
> these services overwrite it:
>
> /etc/init.d/pppd-dns
> /etc/init.d/dns-clean
>
> so if you don't use DHCP anymore disable them
> or, if you don't know how or don't want to do it put in /etc/rc.local
> something like this:
>
> echo 'nameserver 192.168.1.1' >> /etc/resolv.conf
>
> it should do what you want to get
>
On question if I may. If I disable DHCP, will I get allocated an IP
address when I use pptp (this is still dynamically allocated by the
remote network)?
By the way, I've been looking around and I've found an alternative
solution. I edited /etc/resolvconf/resolv.conf.d/tail
and I added the line
nameserver 192.168.1.1
Now, the resolv.conf file is automatically correct after a reboot and
when I drop the pptp connection.
Nick Guest
-
Carbon #4
Re: Fixed IP address and resolv.conf problem
On Thu, 18 May 2006 15:37:15 +0100, Nick wrote:
Most routers are able to map the MAC (ifconfig eth0 will tell you> On question if I may. If I disable DHCP, will I get allocated an IP
> address when I use pptp (this is still dynamically allocated by the
> remote network)?
what it is) address in the DHCP so that your network card always gets the
same IP address. I did this on my ipcop router a long time ago. Since I
know my box always has 192.168.1.2 I can do port forwarding, etc...
Or you could just do static IPs.
Carbon Guest



Reply With Quote

