0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
25 Ansichten2 Seiten
The document outlines steps to configure a DNS server on a CentOS system including:
1) Creating a user, updating the system, and configuring software repositories;
2) Editing DNS configuration files to define internal and external views with zone files for internal and external domains;
3) Creating a zone file for the internal "server.world.lan" domain that defines the name server, its IP address, and mail exchanger.
The document outlines steps to configure a DNS server on a CentOS system including:
1) Creating a user, updating the system, and configuring software repositories;
2) Editing DNS configuration files to define internal and external views with zone files for internal and external domains;
3) Creating a zone file for the internal "server.world.lan" domain that defines the name server, its IP address, and mail exchanger.
The document outlines steps to configure a DNS server on a CentOS system including:
1) Creating a user, updating the system, and configuring software repositories;
2) Editing DNS configuration files to define internal and external views with zone files for internal and external domains;
3) Creating a zone file for the internal "server.world.lan" domain that defines the name server, its IP address, and mail exchanger.
[root@dlp ~]# passwd cent Detener Servicios Iptables [root@dlp ~]# /etc/rc.d/init.d/iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading iptables modules: [ OK ] [root@dlp ~]# chkconfig iptables off Actualizacion del Sistema [root@dlp ~]# yum -y install yum-plugin-fastestmirror [root@dlp ~]# yum -y update Agregar Repositorios [root@dlp ~]# yum -y install yum-plugin-priorities [root@dlp ~]# sed -i -e "s/\]$/\]\npriority=1/g" /etc/yum.repos.d/CentOS-Base.re po Repositorios EPEL [root@dlp ~]# yum -y install epel-release [root@dlp ~]# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo [root@dlp ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo [root@dlp ~]# yum --enablerepo=epel install [Package] Repositorios RPMFORGE [root@dlp ~]# yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge -release-0.5.3-1.el6.rf.x86_64.rpm [root@dlp ~]# sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/rpmforge.repo [root@dlp ~]# sed -i -e "s/enabled = 1/enabled = 0/g" /etc/yum.repos.d/rpmforge. repo [root@dlp ~]# yum --enablerepo=rpmforge install [Package] Instalacin de un DNS [root@dlp ~]# yum -y install bind bind-utils [root@dlp ~]# vi /etc/named.conf options { # comment out ( listen all interfaces on the server ) #listen-on port 53 { 127.0.0.1; }; # change ( if not use IPv6 ) listen-on-v6 { none; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; # query range ( set internal server and so on ) allow-query{ localhost; 192.168.0.0/24;}; # transfer range ( set it if you have secondary DNS ) allow-transfer { localhost; 192.168.0.0/24; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; };
# change all from here
view "internal" { match-clients { localhost; 192.168.0.0/24; }; zone "." IN { type hint; file "named.ca"; }; zone "server.world" IN { type master; file "server.dominio.lan"; allow-update { none; }; }; zone "0.0.10.in-addr.arpa" IN { type master; file "0.168.192.db"; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; }; view "external" { ## IP EXTERNA 172.16.0.80 --> 80.0.16.172 match-clients { any; }; allow-query { any; }; recursion no; zone "server.world" IN { type master; file "server.dominio.wan"; allow-update { none; }; }; zone "80.0.16.172.in-addr.arpa" IN { type master; file "80.0.16.172.db"; allow-update { none; }; }; }; Zona Interna [root@dlp ~]# vi /var/named/server.world.lan $TTL 86400 @ IN SOA dlp.dominio.local. root.dominio.local. ( 2014080201 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) # define name serve IN NS localhost.dominio.local. # internal IP address of name server IN A 192.168.0.5 # define Mail exchanger IN MX 10 localhost.server.world. # define IP address and hostname dlp IN A 10.0.0.30
Kali Linux - An Ethical Hacker's Cookbook - Second Edition: Practical recipes that combine strategies, attacks, and tools for advanced penetration testing, 2nd Edition
Java Professional Interview Guide: Learn About Java Interview Questions and Practise Answering About Concurrency, JDBC, Exception Handling, Spring, and Hibernate