Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
networking [2018/08/29 19:06] – wiki_admin | networking [2018/09/02 19:41] – wiki_admin |
---|
Out of the box, Amiga UNIX doesn't do DNS lookups but looks at local files (/etc/hosts) only. To enable DNS access: | Out of the box, Amiga UNIX doesn't do DNS lookups but looks at local files (/etc/hosts) only. To enable DNS access: |
| |
| <code> |
ln -f /usr/lib/libsockdns.so /usr/lib/libsocket.so | ln -f /usr/lib/libsockdns.so /usr/lib/libsocket.so |
| |
| |
ln -f /etc/netconfig.DNS /etc/netconfig | ln -f /etc/netconfig.DNS /etc/netconfig |
| </code> |
| |
If you put your nameserver into /etc/resolv.conf this will get DNS working for at least some applications, like ping. Others such as nslookup appear to expect a nameserver to be running on the local system. To easily configure your system, download the attachments to this page, below. Place named.boot in /etc, and everything else into /var/named. Edit /etc/named.boot and replace the IP address on this line with the DNS server you use for your net connection: | If you put your nameserver into /etc/resolv.conf this will get DNS working for at least some applications, like ping. Others such as nslookup appear to expect a nameserver to be running on the local system. To easily configure your system, download the attachments to this page, below. Place named.boot in /etc, and everything else into /var/named. Edit /etc/named.boot and replace the IP address on this line with the DNS server you use for your net connection: |
You can verify this is working by using nslookup to find google.com's IP: | You can verify this is working by using nslookup to find google.com's IP: |
| |
| <code> |
nslookup www.google.com | nslookup www.google.com |
Server: localhost | Server: localhost |
Address: 74.125.67.147 | Address: 74.125.67.147 |
Aliases: www.google.com | Aliases: www.google.com |
| </code> |
| |
You've now got DNS working as well as I can get it to work, currently. | You've now got DNS working as well as I can get it to work, currently. |
The route is set in the file /etc/inet/rc.inet. Assuming your gateway is 192.168.1.1, you need to add the following to this file: | The route is set in the file /etc/inet/rc.inet. Assuming your gateway is 192.168.1.1, you need to add the following to this file: |
| |
| <code> |
/usr/sbin/route add default 192.168.1.1 1 | /usr/sbin/route add default 192.168.1.1 1 |
| </code> |
| |
Don't forget the extra "1" at the end, that's the metric and it's required. | Don't forget the extra "1" at the end, that's the metric and it's required. |