The linux operating system is often used as
a server, but even if you are a home user, it is essential to learn many
of the linux networking commands.
Networking commands and terms for linux:
hostname:
Simply type hostname and press Return
It should display the host name.
If you want to change it, typ; hostname newname <Enter>
This will change the host name.
Nslookup-name-address translation
First looks at /etc/hosts and then /etc/resolv.conf
-then to DNS nameserver and out to Internet
ifconfig -a a switch means all so this looks at network setting on the computer
netstat-shows network status or statistics
netstat -rn -best switch shows a summary
host is not same as localhost localhost is built in and is always 127.0.0.1
host - host <IP> or host <domain> shows MX record
Ex: host 24.3.36.172 host logicalmind.com
dnsquery -sams as nslookup ex: dnsquery logicalmind.com
MX record-record on DNS server for your network connection
Ex: DNS server for magicalmind.com dns33.register.com dns34.register.com
Set q =any
Primary MX20 vcic.com sets mail from
C name: alias for domain name
Files to configure:
/etc/sysconfig/network
/etc/hostname
/etc/hosts
/etc/sysconfig/network-scripts-eth0
You need a fully qualifie domain name fqdn
To stop and start services Start-files to lower case s
/etc/rc0.d
/etc/rc1.d.
/etc/r
c2.d
/etc/rc3.d
If gateway is 24.13.103.1 then Broadcast is 24.13.103.0 This is address that yells where it is to gateway which passes it on.
Subnet mask 255.255.255.0
To stop process Cntrl ]
You first do ps aux | grep sendmail
Then you note down the PID number, which is in the first column
Then you do kill PID#
|