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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
well i want to set up a test dns server in my system and for this i am not using any static ip,i will be using dhcp..
now i am stuck with creating the zones for the website so can anyone help me in it?and while configuring named.conf(as m not using a static ip),i gave the address that i have through dhcp?is that ok?
And is my configuration for names.conf file correct?
options {
listen-on port 53 { 127.0.0.1; 192.168.0.11.255 };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
is for my opinion almost impossible.
At least your server should be static IP within your subnet (home network ...) having configured Gateway through your internet connection, like:
is for my opinion almost impossible.
At least your server should be static IP within your subnet (home network ...) having configured Gateway through your internet connection, like:
Code:
internet (dyn) -> router -> server (static)
is it not possible to fix the IP of user in dhcp through MAC
Through that way it should be possible?
well Mr.Deepak,i have gone through that as i was the one to ask that last time..
well i want my system to act as a dns server(just to learn and see if it works),and for this is it necesssary to give a valid web address for it?i though it qould confilct so but anyway i can give a valid web address also..
and in /etc/hosts we need to give the ip of the machine followed by the hostname,here what does the hostname stand for?is it the website or what is it?
well Mr.Deepak,i have gone through that as i was the one to ask that last time..
well i want my system to act as a dns server(just to learn and see if it works),and for this is it necesssary to give a valid web address for it?i though it qould confilct so but anyway i can give a valid web address also..
and in /etc/hosts we need to give the ip of the machine followed by the hostname,here what does the hostname stand for?is it the website or what is it?
As lithos said it is always better to use a static IP rather a dynamic one and honestly I have not tried with a DHCP IP for DNS.
and for host name is the name of your machine
for better results search on Google and m sure you'll get your answer
well what i did was i have used that static ip in the named.conf and resolv.conf file but i havent used it in my system itself,i mean for the lan....or do you want me to use this static ip in the system also?
and the hostname of ny system is localhost.localdomain...i can change it as well right?..in you example you have given it as example.com and that looks like a website address....so m confused as to whether you are askin me to give the hostname of the system,or change the hostname of my system to sarah.example.com or whether to give the website?
well what i did was i have used that static ip in the named.conf and resolv.conf file but i havent used it in my system itself,i mean for the lan....or do you want me to use this static ip in the system also?
and the hostname of ny system is localhost.localdomain...i can change it as well right?..in you example you have given it as example.com and that looks like a website address....so m confused as to whether you are askin me to give the hostname of the system,or change the hostname of my system to sarah.example.com or whether to give the website?
that really confused me
you have used static ip in named.conf and resolv.conf but not in your system?
now where do you want to configure DNS?
and regarding hostname as I said you should try google once
oh yaya i got it....my mistake,hahaa....sorry for that...ya i did goole for hostnames,thats y i told you that we can cahnge it also....
My doubt is in your example you have given sarah.example.com in place of localhost.localdomain,so m asking you what should id do?u want me to change my hostname to sarah.example.com?
well Mr.Deepak i did as you said and gave sarah.example.com with the ip address in the /etc/hosts and in others also.....but in the /hosts the loopback addressia also there as:
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
what should i do?shall i replace the above localhost.localdomain wth that sarah one or remove the loopback address itself or leave it as it is?
and in cd sysconfig/network also:
HOSTNAME=localhost.localdomain
so out here also replace localhost.localdoamin wth sarah.example.com or add a new one?
please don't mind as i have been asking you a lot of times and that too such silly questions,please don't mind but million thanks as well...
Last edited by SarahGurung; 10-27-2011 at 05:22 AM.
wow thanks,i did as u said now....what step should i be taking now?
And Mr.Deepak our lan uses private ip in the range of 192.168.11.X(dhcp)....so when i used the static ip i used 192.168.0.1 but since it isnt in our lan it isnt connecting to the internet or is something wrong with my system?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.