Antix static IP DNS configuration not works, no address resolution
by yllug from LinuxQuestions.org on (#6K854)
Hi, me again.
I have the problem with my Antix-Linux that I can't set a static IP configuration on my hotplug-able NIC (ASIX ax88772). "I can't" means, domain name resolution would fail.
Connman manages the networks. I've already disabled it for eth0 - or let's say I tried it, no idea if it worked. I added the line NetworkInterfaceBlacklist=eth0 in /etc/connman/main.conf.
I also tried to enter a DNS in the file /etc/resolv.conf, but after a reboot this file is overwritten with a symlink to /run/connman/resolv.conf
I have made the following configuration in the file /etc/network/interfaces:
Code:allow-hotplug eth0
iface eth0 inet static
address 192.168.2.112
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 9.9.9.9This worked - to the extent that I was able to ping IPs. However, name resolution also failed here. Ping returns: unknown host.
Something else that may be relevant: When I try to configure eth0 with ceni, it doesn't work either. Sometimes it hangs on the try to "up" eth0:
ip link set dev eth0 up
(The "up" is preceded by three spaces)
When it hangs, the entire system hangs. Means, I can then no longer end the session. Unless I press and hold the power-button.
Generally, how is it intended in Antix to specify own DNS servers?
I have the problem with my Antix-Linux that I can't set a static IP configuration on my hotplug-able NIC (ASIX ax88772). "I can't" means, domain name resolution would fail.
Connman manages the networks. I've already disabled it for eth0 - or let's say I tried it, no idea if it worked. I added the line NetworkInterfaceBlacklist=eth0 in /etc/connman/main.conf.
I also tried to enter a DNS in the file /etc/resolv.conf, but after a reboot this file is overwritten with a symlink to /run/connman/resolv.conf
I have made the following configuration in the file /etc/network/interfaces:
Code:allow-hotplug eth0
iface eth0 inet static
address 192.168.2.112
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 9.9.9.9This worked - to the extent that I was able to ping IPs. However, name resolution also failed here. Ping returns: unknown host.
Something else that may be relevant: When I try to configure eth0 with ceni, it doesn't work either. Sometimes it hangs on the try to "up" eth0:
ip link set dev eth0 up
(The "up" is preceded by three spaces)
When it hangs, the entire system hangs. Means, I can then no longer end the session. Unless I press and hold the power-button.
Generally, how is it intended in Antix to specify own DNS servers?