/etc/network/interfaces file not creating the resolv.conf

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ychaouche
Level 1
Level 1
Posts: 19
Joined: Thu Nov 20, 2014 5:22 am

/etc/network/interfaces file not creating the resolv.conf

Post by ychaouche »

Hello,

I want to configure my eth1 connection (as static), here is the interfaces file I have written to do so

Code: Select all

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

allow-hotplug eth1
iface eth1 inet static
      address 192.168.100.109
      netmask 255.255.255.0
#     network 192.168.100.0
#     broadcast 192.168.100.255
      gateway 192.168.100.1
#     up route add -net 192.168.100.0 netmask 255.255.255.0 dev eth1
#     up route add default gateway 192.168.100.1 dev eth1
      dns-nameservers 10.10.10.7
      dns-domain algerian-radio.dz
This is almost exactly the same instructions that are set on a different (debian) machine. On my linux mint, the /etc/resolv.conf isn't created properly (empty file, only usual header comments).

Any ideas of what I'm doing wrong ?

Thanks for any help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
DW_1

Re: /etc/network/interfaces file not creating the resolv.con

Post by DW_1 »

What version of L'Mint are you using?

With Ubuntu 14.10 as well as with Linux Mint 17.1 Rebecca it seems to be very difficult to have static IP in a usual, known way.
sulfamixacid

Re: /etc/network/interfaces file not creating the resolv.con

Post by sulfamixacid »

/etc/resolv.conf is overwritten by dhcp. As you do not use it, it looks normal to have it empty.

cp another working resolv.conf file or edit it (following are opendns network ips) and it should not be overwritten again.

Code: Select all

nameserver 208.67.222.222
nameserver 208.67.222.220 
Locked

Return to “Networking”