Reply
Fri 23 May, 2003 01:52 pm
When I try to add a domain name I keep getting an error message saying that I need to add the nameserver IPs to /etc/ips.remotedns How do I do that?????
Log onto your server through Telnet or SSH.
Use the su - command to get root access (you will need root access to modify ips.remotedns). Once prompted for the password give the root password.
Then type emacs and press enter.
Emacs is a visual editor as opposed to a line-by-line editor. It generally ships with Unix, Linux etc (I'm assuming you are running a *nix server but it's helpful to include such details).
emacs doesn't edit the files directly but loads it into a RAM buffer so you will need to load up the remote dns file.
To load the file into emac's buffer type Control-X-Control-F and in the subsequent prompt give it the name of the file ( /etc/ips.remotedns ). Press enter and it should load into the RAM buffer and display in the editor.
Type in the IP address (if you don't know your nameserver IP you need to get it from your nameserver, you don't have it on your box because your system is prompting you for a remote DNS server).
Once you have typed in the IP you need to save the file. You can save the file by using Control-X-Control-S.
It's a lot simpler than it sounds, all you really need to do is type in the IP, nothing else. It's just a bit daunting to do this through Telnet.
Here are some more emacs commands:
Control-X-Control-C - exits emacs and returns to the Unix shell
Control-H - get help (If you type the question mark (?), emacs will present a list of help topics you can choose)
Control-G - aborts a command
Control-D deletes forward one letter.
Control-K deletes from the point to the end of the line.
ESCAPE-D deletes forward one word.
ESCAPE-delete deletes backward one word.
Control-_. - undo a change
Control-F moves the cursor forward to the next character.
Control-B moves the cursor back to the previous character.
Control-N moves the cursor to the next line.
Control-P moves the cursor to the previous line.
Control-A moves the cursor to the start of the current line.
Control-E moves the cursor to the end of the current line.
ESCAPE-F moves the cursor forward to the next word.
ESCAPE-B moves the cursor back to the previous word.
ESCAPE-< moves the cursor to the start of the buffer.
ESCAPE-> moves the cursor to the end of the buffer.
Thanks mate!!! It works!!!!!
No problem, it's a piece of cake as long as you know that emacs is the Unix text editor.