Y
Y
Yuri2016-01-27 17:30:39
linux
Yuri, 2016-01-27 17:30:39

How to configure dhcp client to get one IP without DNS?

Actually, the question is in the title. By default, dns settings are pulled along with IP, but I need another dns to be used, for example, from /etc/network/interfaces. How to setup?
(linux mint)
Perhaps I'll clarify the question: there are two network interfaces, routes are configured, everything that goes to the internal network is through one interface, the rest is through another. The internal network DNS server does not resolve external addresses, but it is needed to resolve internal domains. It clings through dhcp.
That is, it is necessary to configure a separate dns-server for each interface, while one of them, preferably, let it cling to dhcp, and the second is set by hand (for example, the same 8.8.8.8).
In the current situation, all registered dns get into /etc/resolv.conf, the first one is received via dhcp.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-01-27
@sim3x

https://wiki.debian.org/NetworkConfiguration#The_r...

# echo "namesever 8.8.8.8" >> /etc/resolvconf/resolv.conf.d/mydns

M
Maxim Kovalenko, 2016-01-27
@maxxx_kovalenko

Read the article Configuring DNS
Try changing /etc/resolv.conf Reboot the PC.
This conf may change after the system is rebooted (if linux mint is fresh)
Then we manually set the /etc/network/interfaces settings
Or suggested above /etc/resolvconf/resolv.conf.d/head
/etc/resolvconf/resolv.conf.d/head

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
#nameserver 192.168.0.254

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question