Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
Suggested Answer:See explanation below.
vi /etc/resolv.conf nameserver 172.24.254.254 host server1.example.com On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.
I do not see it like this. /etc/hosts contains domain name and IP address of each custom machine/server we want to add. The question does not provide IP address of the server, only DNS server. The IP of the server itself is unknown and DNS should resolve it. Correct method (and easiest, IMHO) would be to use nmcli like sugisho suggested. Modifying resolv.conf, on the other hand, would only result in temporary solution as this file gets overwritten automatically on each reboot by NetworkManager, unless we add a custom configuration to /etc/NetworkManager/conf.d/something.conf with contents:
[main]
dns=none
Only then can we modify the /etc/resolv.conf manually and it will persist.
absolutey the easiest and also persistent way to do it. just a sidenote, there is a typo (1pv4.dns --> should be ipv4.dns)
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
PENNSHARK
3 months, 2 weeks agoAcesyo
1 year, 1 month agomattd81
1 year, 11 months agowizojlo
1 month, 3 weeks agosugisho
2 years, 9 months agowizojlo
1 month, 3 weeks ago