Dns настройка на linux mint

Linux Mint Forums

[Solved]How to change DNS settings permanently?

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

russellz Level 3
Posts: 172 Joined: Sat Nov 24, 2012 7:02 am Location: Millas, France

[Solved]How to change DNS settings permanently?

Post by russellz » Tue May 07, 2013 4:39 am

Hi,
I have been struggling for some time withy my DNS settings to use a SmartDNS service to access TV when travelling abroad.

If I change them in Control Centre > Network > DNS tab > DNS Servers by deleting the preset settings and adding new severs addresses they revert to the default settings on reboot.

I have edited /etc/resolvconf/resolv.conf.d/tail to remove the reference to 208.67.222.222 and 208.67.220.220 and replaced them with my prefered DNS addresses. However, at each reboot 127.0.1.1 gets added to the top of the list shown in Control Centre and messes things up.

Any ideas how I can stop this happening?

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Laptop: HP17bs086nf, Intel Core i5-7200U, Intel HD Graphics 620 . Mint Cinnamon 21.1
Desktop: ASUS Prime B760-plus D4 motherboard, AMD Radeon RX6500XT, Intel 12th gen i7 12 core 3500MHz, 8GB ram, 500GB Samsung SSD, Mint Cinnamon 21.1

Re: How to change DNS settings permanently?

Post by warprunner » Tue May 07, 2013 8:58 am

I am not a huge expert, but it sounds like DHCP is changing your DNS servers. Can you make the DHCP give the DNS servers you are wishing?

russellz Level 3
Posts: 172 Joined: Sat Nov 24, 2012 7:02 am Location: Millas, France

Re: How to change DNS settings permanently?

Post by russellz » Wed May 08, 2013 2:50 am

Thanks Warprunner,
I presume from your suggestion that DHCP runs on the machine as well as on the router. Any advice on how to control it?
DHCP runs on my router but only allows adresses in the range 192.168.1.20 to 192.168.1.100 so that can’t be a problem.

I have just tried commenting out the line 127.0.1.1 from the hosts file but 127.0.1.1 still gets added to the top of DNS list in Control Centre after a suspend. Any ideas where it can be finding this?

Laptop: HP17bs086nf, Intel Core i5-7200U, Intel HD Graphics 620 . Mint Cinnamon 21.1
Desktop: ASUS Prime B760-plus D4 motherboard, AMD Radeon RX6500XT, Intel 12th gen i7 12 core 3500MHz, 8GB ram, 500GB Samsung SSD, Mint Cinnamon 21.1

Читайте также:  Linux masters of orion

Re: How to change DNS settings permanently?

Post by warprunner » Wed May 08, 2013 7:13 am

russellz wrote: Thanks Warprunner,
I presume from your suggestion that DHCP runs on the machine as well as on the router. Any advice on how to control it?
DHCP runs on my router but only allows adresses in the range 192.168.1.20 to 192.168.1.100 so that can’t be a problem.

I have just tried commenting out the line 127.0.1.1 from the hosts file but 127.0.1.1 still gets added to the top of DNS list in Control Centre after a suspend. Any ideas where it can be finding this?

So, you could try to disable DHCP from the machine in question.
Go into the Network settings
Go to the Options (I am currently in Mint but I believe it’s the same)
Go to IPV4 Settings tab
Change Method to Manual
Add your address like 192.168.1.50
add DNS 8.8.8.8
Go to Close
Reboot

russellz Level 3
Posts: 172 Joined: Sat Nov 24, 2012 7:02 am Location: Millas, France

Re: How to change DNS settings permanently?

Post by russellz » Wed May 08, 2013 2:23 pm

Sorry, should have said which version I’m running. It’s Linux Mint Mate.

Control Centre > Network Settings gives me four tabs: Connections, General, DNS, and Hosts. No options tab. I can’t find anywhere to disable DHCP or change IPV4 settings.

Sorry if I’ve missed something obvious!

Laptop: HP17bs086nf, Intel Core i5-7200U, Intel HD Graphics 620 . Mint Cinnamon 21.1
Desktop: ASUS Prime B760-plus D4 motherboard, AMD Radeon RX6500XT, Intel 12th gen i7 12 core 3500MHz, 8GB ram, 500GB Samsung SSD, Mint Cinnamon 21.1

Re: How to change DNS settings permanently?

Post by altair4 » Wed May 08, 2013 2:51 pm

To get to where warprunner wants you to go in MATE it’s not Control Centre > Network Settings.

It’s Control Centre > Network Connections > Wired ( Or Wireless ) > Edit > IPV4 Tab

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Re: How to change DNS settings permanently?

Post by warprunner » Wed May 08, 2013 9:42 pm

russellz wrote: Sorry, should have said which version I’m running. It’s Linux Mint Mate.

Control Centre > Network Settings gives me four tabs: Connections, General, DNS, and Hosts. No options tab. I can’t find anywhere to disable DHCP or change IPV4 settings.

Sorry if I’ve missed something obvious!

Ok now if where Altaid explained, and you still have an issue, my last thought is to change it in the router that is giving the DHCP addressing. However, I am thinking the IPV4 set to manual and changing the DNS servers there is the solution.

Also, no problem about your explanations. I envy that you can speak at least two languages.

russellz Level 3
Posts: 172 Joined: Sat Nov 24, 2012 7:02 am Location: Millas, France

Re: How to change DNS settings permanently?

Post by russellz » Thu May 09, 2013 8:57 am

O.K. I’ve now set IPV4 to manual and it still adds 127.0.1.1 to the DNS list in Network Settings on reboot or suspend. Going back to the Network Connections settings I see it has reverted to Automatic and now won’t let me save a change to Manual!

Читайте также:  Player swf для linux

Tried disabling DHCP on the router, got the message «Warning ! By Disabling the DHCP server of the neufbox, the STB may not work properly any more» but continued. Lost my usual WIFI connection but the DNS list was still changed on suspend. Tried turning off the router and found the settings remained on suspend/reboot. So there is some interaction going on between the router and the computer even when it can’t establish a connection.

As an experiment I tried another distro (PCLinuxOS) running in Virtualbox and when I unchecked «Get DNS servers from DHCP» everything worked as expected so I need to find an equivalent setting for Mint.

P.S. Tried deleting domain-name-servers and dhcp6.name-servers from the request statement in /etc/dhcp/dhclient.conf but no apparent effect. Unfortunately I don’t really know what I’m doing

Laptop: HP17bs086nf, Intel Core i5-7200U, Intel HD Graphics 620 . Mint Cinnamon 21.1
Desktop: ASUS Prime B760-plus D4 motherboard, AMD Radeon RX6500XT, Intel 12th gen i7 12 core 3500MHz, 8GB ram, 500GB Samsung SSD, Mint Cinnamon 21.1

Re: How to change DNS settings permanently?

Post by warprunner » Thu May 09, 2013 10:20 am

russellz wrote: O.K. I’ve now set IPV4 to manual and it still adds 127.0.1.1 to the DNS list in Network Settings on reboot or suspend. Going back to the Network Connections settings I see it has reverted to Automatic and now won’t let me save a change to Manual!

Tried disabling DHCP on the router, got the message «Warning ! By Disabling the DHCP server of the neufbox, the STB may not work properly any more» but continued. Lost my usual WIFI connection but the DNS list was still changed on suspend. Tried turning off the router and found the settings remained on suspend/reboot. So there is some interaction going on between the router and the computer even when it can’t establish a connection.

As an experiment I tried another distro (PCLinuxOS) running in Virtualbox and when I unchecked «Get DNS servers from DHCP» everything worked as expected so I need to find an equivalent setting for Mint.

P.S. Tried deleting domain-name-servers and dhcp6.name-servers from the request statement in /etc/dhcp/dhclient.conf but no apparent effect. Unfortunately I don’t really know what I’m doing

Ok, I think you disabled the DHCP from the Nuefbox to the provider we wanted the Neufbox to the machine side.
In an case, put it back the way it was. I read a little on a little on the Neubox and have no experience in it. However it seems like a great piece of hardware.
http://www.broadbandtvnews.com/2010/11/ . e-gateway/

Set your machine back to automatic. Then call the help desk at the manufacturer of Neufbox and tell them what you want to do. They can walk you through everything.
I’m sorry but I don’t know that hardware.

Can anyone else give input on this?

Источник

Dns настройка на linux mint

Добрый день, решил я попробовать Mint в качестве офисного ПК, поставил, настроил что нужно 1С/Офис/VNC всё работает как надо.
Но вот разобраться с сетью и dns не получается, почитал wiki на убунту про сети и dns и

Читайте также:  Pantum p2200 драйвер linux

В сети домен с 1С сервером он же dns с dhcp, при подключении к бд 1С не видит. ping: alpha: Неизвестное имя или служба
Если пингую alpha.local то всё пингуется (64 bytes from alpha.ogn.local 10.56.100.253) если пропишу с local в 1С не видит сервер/бд.

user@WS-27:~$ nslookup alpha
Server: 127.0.0.53
Address: 127.0.0.53#53
** server can’t find alpha: SERVFAIL

в /etc/resolv.conf меня на свой dns, тогда по ip 1С видит сервер а по хосту не видит, и если я перезагружусь то настройка слетает.
в /etc/network/interfaces поставить dns-nameserver 10.56.100.253, dns-nameserver, 8.8.8.8, dns-nameserver 8.8.4.4 не помолгло
так же тут же пробовал настроить статику тогда вообще сеть отваливается.

iface enp2s0 inet static address 10.56.100.200 netmask 255.255.255.0 gateway 10.56.100.254 dns-nameservers 10.56.100.253 8.8.8.8 auto enp2s0
IPv4: 10.56.100.200 Маршрут; 10.56.100.254 DNS: 10.56.100.253

Подскажите где и как настроить dns или сеть что б mint увидел 1С сервер и машины в сети windows, samba и шара работают как надо).

sudo nano /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart

добавляем свой (nameserver 8.8.8.8) DNS в /etc/resolv.conf после этого файл перестанет перезаписывать и DNS останется статическим.

Источник

How to Setup Your Own DNS Server on Ubuntu & Debian

Ubuntu is one of the most popular Linux distributions, and it is widely used by web developers and system administrators alike. Setting up a DNS server on Ubuntu is a relatively straightforward process, and in this blog article, I will walk you through the steps you need to take to set up a DNS server on Ubuntu.

A DNS server is a computer that acts as a translator between the IP address and the domain name. It is responsible for translating the domain name into its corresponding IP address. By setting up a DNS server on Ubuntu, you will be able to manage your DNS records and improve the performance of your website.

Are you looking for an easy way to set up a DNS server on Ubuntu? Well, you have come to the right place! In this blog article, I will provide you with a comprehensive step-by-step guide on how to quickly and easily set up a DNS server on Ubuntu.

Whether you are a beginner or an expert, this guide will help you set up a DNS server on Ubuntu in no time. So, let’s get started!

Step 1 – Install DNS (bind9) Packages

The first step in setting up a DNS server on Ubuntu is to install the DNS server. It is a straightforward process, and you can do it by running the following command:

sudo apt update sudo apt install bind9 -y 

Step 2 – Create Forward Zone File

A forward DNS zone is responsible for translating the domain name into the corresponding IP address. To set up a forward DNS zone, you need to create a zone file for each domain that you want the DNS server to manage. For example, if your domain is example.net, then create the zone files by running the following command:

sudo vi /etc/bind/example.net.zone 

Add the following content

Источник

Оцените статью
Adblock
detector