This site requires JavaScript to be enabled
Welcome|
Recent searches
IE BUMPER

Changing Local DNS for Testing in UBS Qual Environment

Number of views : 0
Article Number : KB0016082
Published on : 2018-07-03
Last modified : 2018-07-03 14:54:48
Knowledge Base : IT Public Self Help

Introduction

These steps apply to sites which are using a custom domain. 

Prior to updating DNS information or changes to the service infrastructure it is ideal to test your domain to ensure that your UBS site behaves as expected in the PROD environment. To perform this testing, you can edit your "hosts" file on your computer to "create" a domain you can use to test. Please find the section for your operating system to begin making the necessary changes. 

 

NOTE: The domain you'll be entering into your hosts file will take the following form;

 

qual.<yourdomain>.utexas.edu

 

So if you have a domain awesome.utexas.edu hosted on the UBS, you'll want to configure the domain qual.awesome.utexas.edu.

OS X 10.8/ Linux Based

  1. Ensure that you have the proper privileges to make administrative changes to your computer. Please contact your Desktop Support personnel otherwise.
  2. Open up your terminal of choice ( Terminal.app on OS X, any terminal emulator will do on Linux ).
  3. Issue the following command in your terminal:
     

    sudo vim /etc/hosts


    Any text editor will do ( vim, nano, pico, ed, emacs ) 

  4. Enter at the bottom of the file to "point" your domain at UBS. For example, if I wanted to point awesome.utexas.eduI would make the following addition;

    128.83.21.174 qual.<yourdomain>.utexas.edu

    Please ensure that at least 1 space or 1 tab appears between the UBS IP address and the domain you wish to test. My /etc/hosts looks like the following. Yours may look similar;

     

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
128.83.21.174 awesome.utexas.edu

 

6. Save the changes to your file. You may now go into your web browser of choice and view your domain/host name on UBS!

NOTE: Please ensure that you remove this entry once the DNS information has been setup for your domain. This will ensure that confusion is avoided if the domain/host name is pointed to another location at some point in the future.

Windows 7

  1. Ensure that you have the proper privileges to make administrative changes to your computer. Please contact your Desktop Support personnel otherwise.
  2. Go to your Desktop and click the Start button.
  3. By either drilling down into your Start Menu or searching, look for the application called "Notepad".
  4. Right click on the Notepad and select "Run as administrator".
  5. A "User Account Control" dialogue box will appear asking if you want to allow the program to make changes. Click "Yes".
  6. Notepad will appear with a blank, untitled window. Click on File -> Open... 
  7. In the File Selection window, look for a drop down next to the the "Open" and "Cancel" buttons. Select "All Files" if it says "Text Documents (*.txt)".
  8. In the left hand pane under "Computer", click Local Disk ( mine is labeled "C:\" ), in the right hand screen double click "Windows" -> "system32" -> "drivers" -> "etc".
  9. Select the file named "hosts" and click "Open".
  10. Notepad will create another window with the contents of "hosts".
  11. Enter at the bottom of the file to "point" your domain at UT Web. For example, if I wanted to point awesome.utexas.eduI would make the following addition;

    146.6.219.84 qual.<yourdomain>.utexas.edu 


    My hosts file looks like the following. Yours may look similar;

    Please ensure that at least 1 space or 1 tab appears between the UT Web IP address and the domain you wish to test. My /etc/hosts looks like the following. Yours may look similar;
    # 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
    146.6.219.84 qual.<yourdomain>.utexas.edu

12. Save the changes to your file. You may now go into your web browser of choice and view your domain/host name on UBS.

NOTE: Please ensure that you remove this entry once the DNS information has been setup for your domain. This will ensure that confusion is avoided if the domain/host name is pointed to another location at some point in the future.

 

Permalink: utss/KAhome.do?number=KB0016082

Thank You! Your feedback has been submitted.

Feedback