LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2019, 11:01 AM   #1
Cha0s_B0y
LQ Newbie
 
Registered: Nov 2019
Posts: 5

Rep: Reputation: Disabled
Question KVM Server - sources list not working


Hello, A friend of mine and I bought a Server (KVM Debian 9) and apt update etc ain't working.

Our host told us to add 8.8.8.8 and 1.1.1.1 to the resolv.conf/interfaces but we don't know as what we need to add it - as dns-nameserver or what option do we need to add it?


(Sorry for my bad english .-.)

My current interfaces looks as following:

Code:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address X.X.X.X
netmask X.X.X.X
gateway X.X.X.X

Last edited by Cha0s_B0y; 12-07-2019 at 11:03 AM.
 
Old 12-07-2019, 03:18 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
8.8.8.8 and 1.1.1.1 are DNS servers indeed. Use the dns-nameservers directive for static interface configuration.

Last edited by berndbausch; 12-07-2019 at 03:20 PM.
 
Old 12-08-2019, 08:34 AM   #3
Cha0s_B0y
LQ Newbie
 
Registered: Nov 2019
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question

Hello thanks for your fast answer but now I got the following error:
Code:
ehl:1 http://security.debian.org jessie/updates InRelease
  Temporärer Fehlschlag beim Auflösen von »security.debian.org«
Fehl:2 http://deb.debian.org/debian jessie InRelease
  Temporärer Fehlschlag beim Auflösen von »deb.debian.org«
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Alle Pakete sind aktuell.
W: Fehlschlag beim Holen von http://deb.debian.org/debian/dists/jessie/InRelease  Temporärer Fehlschlag beim Auflösen von »deb.debian.org«
W: Fehlschlag beim Holen von http://security.debian.org/dists/jessie/updates/InRelease  Temporärer Fehlschlag beim Auflösen von »security.debian.org«
W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
The sourceslist data can't be reached - how am I able to fix that?
As I said our host told us to add 8.8.8.8 and 1.1.1.1 to the interfaces but how am I able to add both now?
 
Old 12-08-2019, 09:30 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Cha0s_B0y View Post
The sourceslist data can't be reached - how am I able to fix that?
With the dns-nameservers directive.

If you have added this directive, ensure it is syntactically correct and that you restart the networking service.

I am not sure if Debian does it this way, but it's likely you will find the DNS servers in /etc/resolv.conf after successful configuration.
Quote:
As I said our host told us to add 8.8.8.8 and 1.1.1.1 to the interfaces but how am I able to add both now?
One should be sufficient, but you can list several:
Code:
dns-nameservers 1.1.1.1 8.8.8.8

Last edited by berndbausch; 12-08-2019 at 09:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/signal-xenial.list" jameswilson0609 Linux - Newbie 3 05-29-2019 12:04 PM
[SOLVED] Error: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:22 Commomore Linux - Newbie 12 02-05-2019 12:24 AM
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list 221B Linux - Newbie 6 09-07-2017 12:14 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration