Search My Techie Guy

Monday, October 24, 2016

Editing the Windows "hosts" file to override the network DNS resolution

Summary: 

Editing the Windows "hosts" file to override the network DNS resolution 

Problem or Goal:

How to edit the "hosts" file on windows machine, this overrides the network DNS answer.

Cause:

In most cases, especially while testing new website installs on hostgator cpanel for domain names that are already in production, i find myself in a situation where i have to edit the "hosts" file on my PC to point to a hostgator server. when am done testing, i delete the entry i had made in the hosts file and point the domain to the hostgator DNS servers.

This helps me to test the site locally on my laptop without interfering with the live website.

Solution: 

File Location:  C:\Windows\System32\drivers\etc

################################################
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

127.0.0.1       localhost

192.185.32.240 www.clientdomain.com

###############################################

Problem Solved?

yes

Gator4043 Hostgator Manual email settings

Summary: 

Gator4043 Hostgator Manual email settings

Problem or Goal:

Configuring your email client for example outlook for hostgator email services 

Cause:

Incase your email client doesn't support automatic configuration script. 

Solution:

Manual Settings


Secure SSL/TLS Settings
(Recommended)
Username:name@yourdomain.com
Password:Use the email account’s password.
Incoming Server:gator4043.hostgator.com
  • IMAP Port: 993
  • POP3 Port: 995
Outgoing Server:gator4043.hostgator.com
  • SMTP Port: 465
Authentication is required for IMAP, POP3, and SMTP.
 

Non-SSL Settings
Username:name@yourdomain.com
Password:Use the email account’s password.
Incoming Server:mail.yourdomain.com
  • IMAP Port: 143
  • POP3 Port: 110
Outgoing Server:mail.yourdomain.com
  • SMTP Port: 25
Authentication is required for IMAP, POP3, and SMTP.
Problem Solved?

Yes

Wednesday, October 12, 2016

Configuring TACACs+ for Juniper Routers and Switches with virtual routing instances

Summary: 

Today i found myself in a situation where i have to add some juniper switches (EX4200s and EX4500s) to our TACACs+ server, for the switches where the remote access IP was configured on the management interface (me0) or any other interface but accessible from the global routing table (inet.0) i didn't face any issues.

However, for switches were the operation and maintenance IP was configured within a routing instance, i had issues because there is no routing-instance specific configuration for TACACs+

TACACs+ server has to be reachable from the global routing table.

Problem or Goal:

Configuring TACACs on a switch with routing instances and VRFs

Cause:

TACACs+ server has to be reachable from the global routing table.

Solution:

Instead of using vlan routed interfaces or the normal interfaces bound to a routing instance, use the management interface (me0).
Juniper has an interface dedicated for management that uses the control plane and is useful for out-of-band management.

Example:

If you have virtual chassis enabled:

set interfaces vme unit 0 family inet address 10.172.2.2/24

if you are working on a single switch without virtual chassis:

set interfaces me0 unit 0 family inet address 10.172.2.2/24

You will need to connect the MGT interfaces to your LAN network.

You also need to add this part of configuration on the switch according to your TACACs server details:

set system login user remote full-name "Tacacs+ System User"
set system login user remote uid xxxx
set system login user remote class super-user

set system authentication-order tacplus
set system authentication-order password

set system tacplus-server 10.0.X.X port 49
set system tacplus-server 10.0.X.X secret tacacs_secret_key
set system tacplus-server 10.0.X.X single-connection
set system tacplus-server 10.0.X.X source-address 10.172.2.2


set system accounting events [ change-log interactive-commands login ] destination tacplus server 10.0.X.X

Don't forget to create a failover local login incase TACACs+ is offline:

set system login user admin uid xxxx
set system login user admin class super-user

set system login user admin authentication plain-text-password

Problem Solved?

Yes

Tuesday, October 11, 2016

What's the best link to watch movies/series/tv shows online anywhere in the world?

Note to self:

This link is so far my best guess: 

TUBEPLUS

1. Use the search bar to search for the show or movie you are interested in.
2. Click on the show.

tubeplus.ag

3. Follow through and click on the season you want to watch.
4. Select the content provider or host, you can base your decision on the reviews, but i recommend
    host: thevideo.me

host: thevideo.me


Monday, October 10, 2016

How to reset IPsec tunnel - Juniper SRX

Summary: 

Resetting IPsec tunnel in Juniper

Problem or Goal:

Resetting IPsec tunnel in most cases allows the end point devices to renegotiate the configured parameters to establish a fresh security association, this is a useful step in troubleshooting problematic IPsec issues.


Cause:

mismatch or change in tunnel parameters, or if the tunnel has hang or is unstable. 

Solution: 

clear security ike security-associations    index XXX
clear security ipsec security-associations indexXXX

Problem Solved?

Tuesday, October 4, 2016

Common DNS query return messages and response codes and their meaning

Summary:

Common DNS query return messages and response codes and their meaning

Problem or Goal:

when trying to resolve a domain/host-name 

Cause:

DNS error

Solution:

DNS Return Message
DNS Response Code 
Function
 NOERROR
RCODE:0
 DNS Query completed successfully
 FORMERR
RCODE:1
 DNS Query Format Error
 SERVFAIL
RCODE:2
 Server failed to complete the DNS request
 NXDOMAIN
RCODE:3
 Domain name does not exist.  
 NOTIMP
RCODE:4
 Function not implemented
 REFUSED
RCODE:5
 The server refused to answer for the query
 YXDOMAIN
RCODE:6
 Name that should not exist, does exist
 XRRSET
RCODE:7
 RRset that should not exist, does exist
 NOTAUTH
RCODE:8
 Server not authoritative for the zone
 NOTZONE
RCODE:9
 Name not in zone

Problem Solved?