| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 56558 | 2005-04-08 13:01:00 | Linux & DNS Configuration help needed!!!!!!!!!!!!!!! | KEricson (7834) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 342786 | 2005-04-08 13:01:00 | I am using Redhat 9 with Bind 9 and trying to create a DNS server on the Linux Box but does not seem to be working. I am using the GUI and have created a mirror example of the help files that are in the DNS interface (but using my own names). The thing is..when I type 'localhost', or 'http: into mozilla, it resolves to the test page, which is what I want it to do with my domain I have created, but It wont. The httpd and named are running, but still nothing. Apart from using the GUI to set it all up, do I have to do anything else manually to get my domain name(s) resolving properly? A dozen to anyone that solves my problem!! Cheers. |
KEricson (7834) | ||
| 342787 | 2005-04-08 22:12:00 | Can you try to get someone else to connect? I've had problems like that if I try to connect from my side of the router it wont work but from outside it does. | Sam I Am (1679) | ||
| 342788 | 2005-04-09 03:00:00 | I dont know anymore . So many things are tempremental in Linux that I could have everything right and not even know it, all the while, there could be something totally unrelated to what I'm doing thats stuffing things up . The thing is, I need it to work from my WinXP machine as well as from the local linux machine . I was wonding about the rndc key and how that plays a part in it all . . as well as the host file, resolv . conf etc . I've searched all over the web and there is nothing which plainly says how to do a setup from start to finish Using the GUI, and testing to get the desired result . There are some that come close, but dont include all of the information properly, its mostly all script files, not good for learners like me . It all makes using Microsoft windows so much more appealing . |
KEricson (7834) | ||
| 342789 | 2005-04-09 03:03:00 | It's a long time since I set up a DNS server + a backup one on another machine . It's all a bit complicated, as I recall . The syntax of the data files is absolutely critical . The slightest error will cause it to fail lookups, with no error messages . localhost and 127 . 0 . 0 . 1 will always work . ;) You don't need DNS for that host, it's always the first (or only) entry in /etc/hosts . (you might need to alter /etc/resolv . conf or the current equivalent) . I'm not quite sure what you want to do with your DNS server? Do you want it available from outside your LAN? I'm not sure that this will work if you use the non routing addresses (10 . x . x . x, 192 . 168 . x . x ) for your hosts . Mine was set up on a largish LAN using various "illegal" proper IP addresses in a number of subnets, including an Appletalk one, with routers, bridges, modem links through a PABX, etc . I'm pretty sure there's a HOWTO which covers setting up a DNS server . . . and there's an old but good Network Supervisors Guide in the Linux Docunmentation Project . I read the (very good) O'Reilly book a few times before I got it going properly . |
Graham L (2) | ||
| 342790 | 2005-04-10 14:11:00 | Yes the syntax is critical . . so much so, that it makes it that much harder to get things working . All I really want to do is type in ' . 168 . 0 . 1' or the domain/host" target="_blank">192 . 168 . 0 . 1' or the domain name Ive created and have it go to the test page . . all from the linux machine at least . Ive followed the localhost's own configuration in the GUI where I set mine up, changing to my own names and addresses but no success . Is there something else I need to do . . like change a few things in the http server, or do something in some other file or what? Iv'e started both the httpd and the named in the services after most of the changes I make but still nothing . I was originally using Fedora 1, but was told the resolver doesn't work properly, so I went back to redhat 9 . |
KEricson (7834) | ||
| 342791 | 2005-04-11 04:19:00 | Aha . You don't actually need a DNS server . ;) I wanted one for the "fun" of making it work . But DNS is gross overkill for a small network . All you need to do is to make sure that each computer on your lan has an /etc/hosts file . (Of couse on Windows boxes, it's somewhere else, but the format is the same) . The first line is always 127 . 0 . 0 . 1 localhost . localnet ("localnet" ? I haven't looked at one for a very long time . . . anyway that line is automatically inserted . ) This entry must never be given another name for 127 . 0 . 0 . 1 -- things stop working . Then put the IP address of each host with its "fully qualified host name" and any aliases you want to use for it . (The hosts can be listed in any order, but I normally put each first in its own file) . The line for your server could be 192 . 168 . 0 . 1 myserver . my . lan myserver www myserver anything If you do that, the others (or a session on itself) can access it with any of " . my . lan", "http://myserver"," target="_blank">myserver . my . lan", "http: " . " target="_blank">www", "http: Or even "http://192 . 168 . 0 . 1" . Though that should work anyway, even without the hosts entry . :confused: This will require static IP addresses for all of them, of course . . . I've never liked dynamic IP addresses anyway . ;) Make the changes to the hosts files, then try pinging each machine by name and by IP address . Try pinging the Linux box from itself . I wouldn't use a GUI setup for this . Just, as root, use a text editor on /etc/hosts . That will make the Linux box recognise itself by the name you've given it, and enable any aliases you give it . On the XP, search for the HOSTS file, and make an entry for the Linux box, again with any aliases you want . But if you can't ping each box from the other, there's a problem with the network software installation . |
Graham L (2) | ||
| 342792 | 2005-04-13 01:02:00 | OK thanks, I'll try those few things and post how I get on in a day or so. Cheers ;) |
KEricson (7834) | ||
| 1 | |||||