Static IP DNS (Bug #99)


Added by Bill Petri over 3 years ago. Updated over 3 years ago.


Status:New Start date:06/27/2014
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

Using Debian docs and various googled advice I'm unable to get DNS to work with a static IP assigned to the ethernet. I set up /etc/resolv.conf and /etc/network/interfaces. There is a resolvconf folder in /etc but resolvconf doesn't appear to be installed. Is there a special trick?
Thanks!


History

Updated by Bill Traynor over 3 years ago

Can you post your /etc/network/interfaces contents?

Updated by Bill Petri over 3 years ago

# 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

# The primary network interface
#iface eth0 inet dhcp
auto eth0
allow-hotplug eth0
iface eth0 inet static
     address 155.231.46.3
     netmask 255.255.254.0
     gateway 155.231.46.1

# Example to keep MAC address between reboots
hwaddress ether 8c:66:2d:58:a2:62

# The secondary network interface
#auto eth1
#iface eth1 inet dhcp

# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
#    wpa-ssid "essid" 
#    wpa-psk  "password" 
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
#iface usb0 inet static
#    address 192.168.7.2
#    netmask 255.255.255.0
#    network 192.168.7.0
#    gateway 192.168.7.1

Also available in: Atom PDF