Supprimer Rendre public Rendre privé Add tags Delete tags
  Ajouter un tag   Annuler
  Supprimer le tag   Annuler
  • • DevOps notes •
  •  
  • Tags
  • Connexion

SSH and DNS/shaare/EvGJOA

  • linux
  • linux

SSH

  • ps -ef | grep sshd → check ssh
  • systemctl status sshd

DNS

  • PTR record → IP to hostname

  • A record → hostname to IP

  • CNAME record → hostname to hostname

  • /etc/named.conf → conf of DNS

  • /var/named/ → file for DNS record

  • systemctl restart named

  • touch forward.lab reverse.lab

  • dig client a in a 192.168.0.240

  • systemctl start named

  • systemctl enable named

Configuring permission

  • chgrp named -R /var/named
  • chown -v root:named /etc/named.conf
  • restorecon -rv /var/named
  • restorecon /etc/named.conf

Test DNS conf

  • named-checkconf /etc/named.conf
  • named-checkzone lab.local /var/named/forward.lab
  • named-checkzone reverse.lab /var/named/reverse.lab

Add DNS info in network file

  • nano /etc/sysconfig/network-scripts/ifcfg-enp0s3

  • DNS=192.168.0.201

  • systemctl restart NetworkManager

  • nano /etc/resolv.conf

  • nameserver 192.168.0.201

Test DNS server

  • dig masterdns.lab.local
  • nslookup masterdns.lab.local

Website lookup

  • nslookup mywebsite.com

    • get IP of a website
  • dig mywebsite.com

    • more info about website
9 months ago Permalien
cluster icon
  • Tuned : Tweaks with Tuned / Podman Tweaks with Tuned systemctl enable tuned tuned-adm active check which profile is active tuned-adm list list all prof...
  • Ftp Scp Rsync : FTP Install FTP server yum install vsftp nano /etc/vsftpd/vsftpd.conf anonymous_enable=NO Uncomment: ascii_upload_enable ascii_download_enabl...
  • System information, root recovery, environment variables, shortcuts : Finding System Information cat /etc/redhat-release → Red Hat version uname -a → Linux hostname, kernel, architecture dmidecode → hardware, BIOS, syst...
  • Logical Volume Management (LVM) : LVM (Logical Volume Management) Combine disk together by software Add new HDD on the fly to extend disk space Set LVM in Linux install Desired...
  • IP Subnet Calculator :


(110)
Filtrer par liens sans tag
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli