Is /etc/resolv.conf useless in Ubuntu 12.04 LTS ? I say so, because when I configured the /etc/resolv.conf file and rebooted the VM, all the settings were overwritten.
piyush@co109044:~$ cat /etc/resolvconf/resolv.conf.d/tail
search romelab.it.ibm.com ibm.com
nameserver 9.168.127.100
namserver 9.168.96.100
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search romelab.it.ibm.com ibm.com
nameserver 9.168.127.100
namserver 9.168.96.100
piyush@co109044:~$ reboot
Last login: Mon Mar 31 08:48:50 2014 from 9.77.94.202
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
After rebooting the VM, all the settings of /etc/resolv.conf were overwritten.search romelab.it.ibm.com ibm.com
nameserver 9.168.127.100
namserver 9.168.96.100
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search romelab.it.ibm.com ibm.com
nameserver 9.168.127.100
namserver 9.168.96.100
piyush@co109044:~$ reboot
Last login: Mon Mar 31 08:48:50 2014 from 9.77.94.202
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
After reading the release notes of Ubuntu, figured out that "resolvconf is now used to manage /etc/resolv.conf on all Ubuntu systems". What's that ??? I suggest reading the man page for resolvconf.
resolvconf is a set of script and hooks managing DNS resolution. The most notable difference for the user is that any change manually done to /etc/resolv.conf will be lost as it gets overwritten next time something triggers resolvconf or the system is rebooted. As a thumb rule, if you are using static IP configuration for your Ubuntu system, add all your network related entries to the file /etc/network/interfaces
piyush@co109044:~$ man resolvconf
piyush@co109044:~$ vi /etc/network/interfaces
piyush@co109044:~$ sudo vi /etc/network/interfaces
[sudo] password for piyush:
piyush@co109044:~$ cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 9.168.109.44
netmask 255.255.255.0
gateway 9.168.109.254
dns-nameservers 9.168.127.100 9.168.96.100
dns-search romelab.it.ibm.com ibm.com
auto lo
iface lo inet loopback
piyush@co109044:~$ ping google.com
ping: unknown host google.com
piyush@co109044:~$ sudo ifdown eth0;sudo ifup eth0
ssh stop/waiting
ssh start/running, process 1999
piyush@co109044:~$ ping google.com
PING google.com (173.194.41.167) 56(84) bytes of data
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 9.168.127.100
nameserver 9.168.96.100
search romelab.it.ibm.com ibm.com
As you can see the entries from the /etc/network/interfaces were automatically added to the /etc/resov.conf file. Notice that the /etc/resolv.conf is a softlink to /run/resolvconf/resolv.confpiyush@co109044:~$ vi /etc/network/interfaces
piyush@co109044:~$ sudo vi /etc/network/interfaces
[sudo] password for piyush:
piyush@co109044:~$ cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 9.168.109.44
netmask 255.255.255.0
gateway 9.168.109.254
dns-nameservers 9.168.127.100 9.168.96.100
dns-search romelab.it.ibm.com ibm.com
auto lo
iface lo inet loopback
piyush@co109044:~$ ping google.com
ping: unknown host google.com
piyush@co109044:~$ sudo ifdown eth0;sudo ifup eth0
ssh stop/waiting
ssh start/running, process 1999
piyush@co109044:~$ ping google.com
PING google.com (173.194.41.167) 56(84) bytes of data
piyush@co109044:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 9.168.127.100
nameserver 9.168.96.100
search romelab.it.ibm.com ibm.com
So if you make, /etc/resolv.conf as a regular file then resolvconf will be disabled (not recommended).
Resolvconf has a /etc/resolvconf/resolv.conf.d/ directory that can contain "base", "head", "original" and "tail" files. All in resolv.conf format.
- tail: Any entry in /etc/resolvconf/resolv.conf.d/tail is appended at the end of the resulting resolv.conf. If the tail file is missing then create it.
- base: Used when no other data can be found.
- original: Just a backup of your resolv.conf at the time of resolvconf installation
ReplyDeleteHmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
Advanced AWS Interview Questions And Answers, Top 250+AWS Interviews Questions and Answers 2018
Advanced AWS Interview questions and answers | Top 110 AWS Interview Question and Answers
Advanced AWS Training in Bangalore | Best Amazon Web Services Training in Bangalore
Advanced AWS Training in Pune | Best Amazon Web Services Training in Pune
Advanced AWS Online Training | Best Online AWS Certification Course in india
This is such a great post, and was thinking much the same myself. Another great update.
ReplyDeletepython Online training in chennai
python Online training in bangalore
python interview question and answers
I would really like to read some personal experiences like the way, you've explained through the above article. I'm glad for your achievements and would probably like to see much more in the near future. Thanks for share.
ReplyDeleteSelenium Online training | Selenium Certification Online course-Gangboard
Selenium interview questions and answers
Selenium interview questions and answers
Selenium Online training | Selenium Certification Online course
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
ReplyDeleterpa training in chennai
Best rpa training in bangalore
rpa course in bangalore
rpa training in marathahalli
rpa training in btm
best rpa training in chennai
Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....
ReplyDeleteBest Devops training in sholinganallur
Devops training in velachery
Devops training in annanagar
Devops training in tambaram
Really very nice blog information for this one and more technical skills are improve,i like that kind of post.
ReplyDeleteData Science training in Chennai | Data Science Training Institute in Chennai
Data science training in Bangalore | Data Science Training institute in Bangalore
Data science training in pune | Data Science training institute in Pune
Data science online training | online Data Science certification Training-Gangboard
Data Science Interview questions and answers
Data Science Tutorial
ReplyDeleteWhoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
AWS TRAINING IN BANGALORE|NO.1AWS TRAINING INSTITUTES IN BANGALORE
Thank you so much for posting this. I really appreciate your work. Keep it up. Great work!Best Placement company in Hyderabad
ReplyDeletedata science course bangalore is the best data science course
ReplyDeleteNice blog,I understood the topic very clearly,And want to study more like this.
ReplyDeleteData Scientist Course
Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
ReplyDeletemachine learning course
artificial intelligence course in mumbai
Attend The Course in Data Analytics From ExcelR. Practical Course in Data Analytics Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Course in Data Analytics.
ReplyDeleteExcelR Course in Data Analytics
Data Science Interview Questions
if you want to learn digital marketing in mumbai. excelr solutions providing best AI course in mumbai.for more details click here
ReplyDeletedigital marketing courses in mumbai
Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites!
ReplyDeleteExcelR digital marketing courses in mumbai
This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science training in Hyderabad
ReplyDeletewonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries.
ReplyDeleteData science Interview Questions
Data Science Course
This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data scientist courses
ReplyDeleteThis Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science online course
ReplyDeleteI really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
ReplyDeletedata science course
Attend The Artificial Intelligence course From ExcelR. Practical Artificial Intelligence course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Artificial Intelligence course.
ReplyDeleteArtificial Intelligence Course
Cool stuff you have and you keep overhaul every one of us
ReplyDeleteCorrelation vs Covariance
Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteCorrelation vs Covariance
Simple linear regression
keep sharing your information regularly for my future reference. This content creates a new hope and inspiration with me.
ReplyDeleteAWS training in chennai | AWS training in annanagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery
Your blog is very nice. Good article keep share your information.
ReplyDeletePython Training in Chennai | Certification | Online Training Course | Python Training in Bangalore | Certification | Online Training Course | Python Training in Hyderabad | Certification | Online Training Course | Python Training in Coimbatore | Certification | Online Training Course | Python Training in Online | Python Certification Training Course
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more
ReplyDeleteData Science Training In Chennai | Certification | Data Science Courses in Chennai | Data Science Training In Bangalore | Certification | Data Science Courses in Bangalore | Data Science Training In Hyderabad | Certification | Data Science Courses in hyderabad | Data Science Training In Coimbatore | Certification | Data Science Courses in Coimbatore | Data Science Training | Certification | Data Science Online Training Course
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
ReplyDeleteartificial intelligence course in bangalore
This post is great. I reallly admire your post. Your post was awesome.
ReplyDeletedata science course in Hyderabad
Cool stuff you have and you keep overhaul every one of us
ReplyDeleteSimple Linear Regression
Correlation vs Covariance
Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteCorrelation vs Covariance
Simple linear regression
data science interview questions
Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!!
ReplyDelete360digitmg
I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
ReplyDeletedata science interview questions
Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
ReplyDeleteSimple Linear Regression
Correlation vs covariance
KNN Algorithm
I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
ReplyDeletedata science interview questions
Amazing Article ! I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
ReplyDeleteSimple Linear Regression
Correlation vs covariance
data science interview questions
KNN Algorithm
Logistic Regression explained
I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.
ReplyDeleteSimple Linear Regression
Correlation vs Covariance
Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
ReplyDeleteData Analyst Course
The blog you shared is very good. I expect more information from you like this blog. Thank you.
ReplyDeletewhat is overloading
important libraries in python
substring function in python
data science linear regression in python
j2ee interview questions
python operator overloading
Great blog! Thank you so much for sharing this pretty article, This blog is so good to read.
ReplyDeletehow to learn java programming
cross platform app development
best social media campaigns
what is cloud service in azure
interview questions on tableau
I got new information from your blog.
ReplyDeletetesting techniques
various types of testing
angular 5 example
programming language used in google
ccna cloud
data science questions and answers pdf
python interview questions and answers pdf
This blog is helpful to me and I hope this will be valuable information.
ReplyDeletemultithreading in java
nested if java
string in java
non primitive data types
software testing interview question and answer
angularjs interview questions
This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works ExcelR Business Analytics Courses
ReplyDeleteWell done work and this post very useful for me to know about this topic...
ReplyDeleteFull Stack developer Course in Pune
Full Stack developer Course in Hyderabad
Full Stack Developer Training in Chennai
Full Stack developer Course in Mumbai
Full Stack developer Course in Gurgaon
Google Adwords Online Course
Google Ads Online Course
Mua vé tại đại lý vé máy bay Aivivu, tham khảo
ReplyDeletegiá vé máy bay từ hàn quốc về việt nam
vé máy bay đi hà nội tháng 9
mua vé máy bay đà nẵng sài gòn
vé máy bay hà nội nha trang vietjet
vé máy bay từ los về việt nam
Highly appreciable regarding the uniqueness of the content. This perhaps makes the readers feels excited to get stick to the subject. Certainly, the learners would thank the blogger to come up with the innovative content which keeps the readers to be up to date to stand by the competition. Once again nice blog keep it up and keep sharing the content as always.
ReplyDeleteData Science Training
Thanks for posting the best information and the blog is very helpful.data science interview questions and answers
ReplyDeleteInformative blog
ReplyDeletedata science course in india
Impressive blog to be honest definitely this post will inspire many more upcoming aspirants. Eventually, this makes the participants to experience and innovate themselves through knowledge wise by visiting this kind of a blog. Once again excellent job keep inspiring with your cool stuff.
ReplyDeletedata science certification in bangalore
I was just examining through the web looking for certain information and ran over your blog.It shows how well you understand this subject. Bookmarked this page, will return for extra. data science course in vadodara
ReplyDeleteImpressive blog to be honest definitely this post will inspire many more upcoming aspirants. Eventually, this makes the participants to experience and innovate themselves through knowledge wise by visiting this kind of a blog. Once again excellent job keep inspiring with your cool stuff.
ReplyDeleteData Science Training in Bhilai
Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing. data scientist course in delhi
ReplyDeleteInformative blog
ReplyDeletecloud computing courses in ahmedabad
Going to graduate school was a positive decision for me. I enjoyed the coursework, the presentations, the fellow students, and the professors. And since my company reimbursed 100% of the tuition, the only cost that I had to pay on my own was for books and supplies. Otherwise, I received a free master’s degree. All that I had to invest was my time. data scientist course in surat
ReplyDeleteA good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one. data science course in surat
ReplyDeleteThis is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses.
ReplyDeletebest data science training in hyderabad
Wonderful blog. I am delighted in perusing your articles. This is genuinely an incredible pursuit for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome!
ReplyDeletedata analytics courses in hyderabad with placements
Thanks for sharing this blog with us. Really informative and knowledgeable content to all. Keep up this work in further blogs.
ReplyDeleteData Science Training Institute in Hyderabad
Wonderful blog post. This is absolute magic from you! I have never seen a more wonderful post than this one. You've really made my day today with this. I hope you keep this up!
ReplyDeletedata analytics course in hyderabad