Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save girishkalele/f8222e57e9afc95eaeef991778da56a3 to your computer and use it in GitHub Desktop.
Save girishkalele/f8222e57e9afc95eaeef991778da56a3 to your computer and use it in GitHub Desktop.
dns perf dockerfile
FROM ubuntu
MAINTAINER Abhishek Shah "abshah@google.com"
ADD README.md README.md
#ADD Dockerfile Dockerfile
RUN apt-get -q update
#Install dependencies needed for building dnsperf
RUN apt-get install -y build-essential
RUN apt-get install -y bind9utils libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
#Install curl, wget is not required, but adding it in for convenience
RUN apt-get install -y curl wget
#Fetch dnsperf
RUN curl ftp://ftp.nominum.com/pub/nominum/dnsperf/2.0.0.0/dnsperf-src-2.0.0.0-1.tar.gz -O
RUN tar xfvz dnsperf-src-2.0.0.0-1.tar.gz
#Get query data file for dnsperf
RUN wget ftp://ftp.nominum.com/pub/nominum/dnsperf/data/queryfile-example-current.gz
RUN gunzip queryfile-example-current.gz
#Build dnsperf
RUN cd /dnsperf-src-2.0.0.0-1 && ./configure
RUN cd /dnsperf-src-2.0.0.0-1 && make clean
RUN cd /dnsperf-src-2.0.0.0-1 && make
RUN cd /dnsperf-src-2.0.0.0-1 && make install
#Install dnsutils
RUN apt-get install -y dnsutils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment