Choose style:

Author Topic: Will multiple Entries in Resolv.conf slow you down?  (Read 1194 times)

0 Members and 1 Guest are viewing this topic.

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3092
  • Karma: 564
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Will multiple Entries in Resolv.conf slow you down?
« on: March 27, 2016, 01:05:44 am »
Hi All - Reading a post today that mentioned DNS has prompted this question.    resolv.conf.     Does it matter if this file has just one DNS Service or can it have Multiple (for ease of testing) as long as they are #Commented out.  Will this slow the system down in any way, or does it simply ignore everything with a #. I am hoping that the processing time to work out which is live is not detectable by the human eye but.... is this an everytime process when it looks up things or a machine start set once thing.

Code: [Select]
# Generated by resolvconf

# Google DNS
# nameserver 8.8.8.8
# nameserver 8.8.4.4

# Yandex Secure
nameserver 77.88.8.88
nameserver 77.88.8.2

# Yandex Basic
# nameserver 77.88.8.8
# nameserver 77.88.8.1

# OpenDNS
# nameserver 208.67.222.222
# nameserver 208.67.220.220

# DNS Watch
# nameserver 82.200.69.90
# nameserver 84.200.70.40

# Level3 DNS
# nameserver 4.2.2.2
# nameserver 4.2.2.4

As usual - Thanks in Advance  :)
« Last Edit: March 27, 2016, 01:10:18 am by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9/10 @ P9 x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Will multiple Entries in Resolv.conf slow you down?
« Reply #1 on: March 27, 2016, 03:03:27 am »
Hi All - Reading a post today that mentioned DNS has prompted this question.    resolv.conf.     Does it matter if this file has just one DNS Service or can it have Multiple (for ease of testing) as long as they are #Commented out.  Will this slow the system down in any way, or does it simply ignore everything with a #. I am hoping that the processing time to work out which is live is not detectable by the human eye but.... is this an everytime process when it looks up things or a machine start set once thing.

Code: [Select]
# Generated by resolvconf

# Google DNS
# nameserver 8.8.8.8
# nameserver 8.8.4.4

# Yandex Secure
nameserver 77.88.8.88
nameserver 77.88.8.2

# Yandex Basic
# nameserver 77.88.8.8
# nameserver 77.88.8.1

# OpenDNS
# nameserver 208.67.222.222
# nameserver 208.67.220.220

# DNS Watch
# nameserver 82.200.69.90
# nameserver 84.200.70.40

# Level3 DNS
# nameserver 4.2.2.2
# nameserver 4.2.2.4

As usual - Thanks in Advance  :)
I would have thought all the commented out entries will just be ignored.  The only one that's going to be read in your list, is the uncommented entry for: Yandex Secure.  What you're doing should work fine  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26063
  • Karma: 2840
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Will multiple Entries in Resolv.conf slow you down?
« Reply #2 on: March 27, 2016, 10:41:08 am »
Yeah commented out lines will make ZERO difference from a human perspective .. okay theoretically as the file size is slightly larger it'll take longer to load into RAM and scan the contents, but it'd probably be a fraction of a microsecond difference for a few added comments, and I doubt if it's read into RAM more than once then held there ;)
« Last Edit: March 27, 2016, 10:44:07 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec