Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This has to do with your search strings. Look at the FQDN. The server knows it's shortname and FQDN but windows maybe doesn't.
Try nslookup with it's FQDN if that doesn't resolve then you don't have an entry in DNS for the server.
For instance, the /etc/hosts file is a common way to define host-names, and this is probably where the name of your host was stored.
Otherwise, your server attempts to use the "DNS" service to resolve the domain-name. (As it did to resolve the domain-name, "linuxquestions.org.")
FQDN = Fully-Qualified Domain Name.
I am quite certain that the domain-name you seek should have been defined in the hosts-file, and that if you now put it there, your problem will go away.
FQDN is Fully Qualified Domain Name. Instead of just the short name "yogeshgowda", the FQDN would be "yogeshgowda.something.somethingelse", for example.
How did you configure networking for the VM? If nslookup can not access any servers then your VM might have a host only network and can not access the internet.
However, unless you add the VM hostname to the Windows hosts file or have local DNS service running you will not be able to ping computers on the LAN by hostname.
I am new to the linux/unix env,,,,,, all I required is to ping my hostname (linux VM) from windows local server and "nslookup hostname" cmd to give the normal o/p, if it requires any snapshot from my side please let me know.
For instance, the /etc/hosts file is a common way to define host-names, and this is probably where the name of your host was stored.
Otherwise, your server attempts to use the "DNS" service to resolve the domain-name. (As it did to resolve the domain-name, "linuxquestions.org.")
FQDN = Fully-Qualified Domain Name.
I am quite certain that the domain-name you seek should have been defined in the hosts-file, and that if you now put it there, your problem will go away.
I have added my hostname and ip in /etc/hosts/ but still nslookup is not showing the desired o/p
How did you configure networking for the VM? If nslookup can not access any servers then your VM might have a host only network and can not access the internet.
However, unless you add the VM hostname to the Windows hosts file or have local DNS service running you will not be able to ping computers on the LAN by hostname.
I didn't configured anything fro VM, I have only changed the hostname and added that hostname in /etc/hosts/ after that i am able to ping the hostname
It does not look like your VM network is configured to access the internet or you don't have any name servers in your /etc/reslov.conf file.
What is the desired output? nslookup queries the Domain Name System. Your VM hostname is not a real registered FQDN and therefore your only going to see something similar to the output below.
1. Check and ensure that his DNS server has an entry for his linux box. If one is not present he needs to add it.
2. If he cannot add a DNS entry then he is going to have to add an enter to the host file on the windows box so it know what IP Address to use.
3. Just use the IP address to connect/talk to the linux box.
The question is which host are you editing the host file on? Linux or Windows? This needs to be done on the windows machine.
Also you should be aware that if you use a host file nslookup is not going top work as nslookup uses a DNS server to resolve its queries for which you do not have an entry.
Ping on the other hand will give you the correct ip address as it does look at the host file before DNS.
It does not look like your VM network is configured to access the internet or you don't have any name servers in your /etc/reslov.conf file.
What is the desired output? nslookup queries the Domain Name System. Your VM hostname is not a real registered FQDN and therefore your only going to see something similar to the output below.
What are you trying to accomplish?
Problem is am not able browse in VM, and mailx is not working I dont know whether mailx is properly configured or not, I need to enable some scripts in cron which sends the o/p to my mail.
This is what my /etc/resolv.conf cotains.
[root@JKT ~]# more /etc/resolv.conf
# Generated by NetworkManager
search jktech
nameserver 202.138.96.2
nameserver 8.8.8.8
I'm trying into install progress database into my VM, before that I need to be sure with all the perquisites in VM server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.