Triode wrote:
> These entries are written to /etc/resolv.conf by the arch linux network
> services - controlled by netctl. All I am doing is editing the
> configuration file for the interface - e.g /etc/netctl/eth0. Doing
> interface updown then does netctl stop, netctl start for the interface.
> If anyone has advise on anything extra to run after this to update the
> dns config then happy to test it...
Thanks for fixing the domain field in soa-web.
Looks like I have both netctl (static) and systemd-networkd (dhcp)
managing eth0 and that's why my resolv.conf is getting over written
after a time. It doesn't appear to be related to updating
/etc/netctl/eth0 as I first thought.
Code:
--------------------
[root@rpi network]# cat /etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
DHCP=both
[root@rpi network]# cat /etc/netctl/eth0
# created by soa-web Tue Oct 14 07:23:29 2014
Description='configuration for eth0'
Interface=eth0
Connection=ethernet
IP=static
Address='192.168.100.23/255.255.255.0'
Gateway='192.168.100.1'
DNS=('192.168.100.1' '192.168.100.252')
DNSDomain='dap.ca'
--------------------
This is a new install from a couple days ago. The 'archlinux wiki'
(http://archlinuxarm.org/forum/viewtopic.php?f=9&t=6953&start=10#p38498)
suggests disabling all netctl services and use systemd-networkd.
Looks like it's related to using netctl in soa-web but arch is managing
eth0 with networkd now.
Code:
--------------------
[root@rpi network]# systemctl | grep network
systemd-networkd.service
loaded active running Network Service
network.target
loaded active active Network
[root@rpi network]# systemctl | grep netctl
[email protected]
loaded active exited configuration for eth0
system-netctl.slice
loaded active active system-netctl.slice
--------------------
I have a dchp reservation for my rpi with the same IP as the static I'm
using above. That might explain why I have two default gateways
defined, one from networkd and the other from netctl
Code:
--------------------
[root@rpi network]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
--------------------
I fixed this by stopping networkd managing eth0 by deleting
/etc/systemd/network/eth0.network and rebooting, now I only have one
default gw and resolv.conf has all entries from soa-web.
Ralphy
*1*-Touch, *4*-Classics, *2*-Booms, *1*-Reverted UE Radio
'Squeezebox client builds'
(https://www.mediafire.com/folder/4q8dvq20iyz9e/Builds) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezeslave¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=101624
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix