Missing content in the video help on DNS

Hi team,

Good day,

I have been into the course devops prerequisites. In that, i came across DNS, where we are into topic /etc/hosts and /etc/resolv.conf.

By default, first the check will happen in the /etc/host and then /etc/resolv.conf.

If we need to change it, as per video (Voice) we need to change the sequence in a file. (But which file is not mentioned). For this, the relevant cmd is not shown (in visual). (Exact video time is around 5:40. If you go to this time frame of the video, you will able to get it)

If you can add it in the visual content of the video, it will be helpful. (The option to change the search sequence first to DNS and then etc/hosts) .

Thanks in advance.

Hello, @rlkrishna

master $ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat systemd
group:          compat systemd
shadow:         compat
gshadow:        files

hosts:          files dns
networks:       files 
1 Like

Hi @player001

Thanks for the update. I will proceed with it.

If possible , pls add the option to change the sequence ‘/etc/nsswitch.conf’ in the video.